Options
All
  • Public
  • Public/Protected
  • All
Menu

This is an implementation of #theia.Uri based on vscode-uri. This is supposed to fix https://github.com/eclipse-theia/theia/issues/8752 We cannot simply upgrade the dependency, because the current version 3.x is not compatible with our current codebase

Hierarchy

  • URI
    • URI

Implements

  • Uri

Index

Constructors

  • new URI(scheme: string, authority?: string, path?: string, query?: string, fragment?: string, _strict?: boolean): URI
  • new URI(components: UriComponents): URI

Methods

  • toJSON(): UriComponents
  • There is quite some magic in to vscode URI class related to transferring via JSON.stringify(). Making the CodeURI instance makes sure we transfer this object as a vscode-uri URI.

    Returns UriComponents

  • with(change: { authority?: null | string; fragment?: null | string; path?: null | string; query?: null | string; scheme?: string }): URI
  • Override to create the correct class.

    Parameters

    • change: { authority?: null | string; fragment?: null | string; path?: null | string; query?: null | string; scheme?: string }
      • Optional authority?: null | string
      • Optional fragment?: null | string
      • Optional path?: null | string
      • Optional query?: null | string
      • Optional scheme?: string

    Returns URI

  • file(path: string): URI
  • joinPath(uri: URI, ...pathSegments: string[]): URI
  • parse(value: string, _strict?: boolean): URI
  • revive(data: URI | UriComponents): URI
  • revive(data: null | URI | UriComponents): null | URI
  • revive(data: undefined | URI | UriComponents): undefined | URI