Protected
constructorOverride to create the correct class.
Optional
authority?: null | stringOptional
fragment?: null | stringOptional
path?: null | stringOptional
query?: null | stringOptional
scheme?: stringStatic
fileStatic
joinCreate a new uri which path is the result of joining the path of the base uri with the provided path segments.
joinPath
only affects the path component
and all other components (scheme, authority, query, and fragment) are
left as they are.The path segments are normalized in the following ways:
/
or \
) are replaced with a single separatorfile
-uris on windows, the backslash-character (``) is considered a path-separator..
-segment denotes the parent segment, the .
denotes the current segmentjoinPath(Uri.file('file:///c:/root'), '../../other').fsPath === 'c:/other'
Rest
...pathSegments: string[]One more more path fragments
A new uri which path is joined with the given fragments
Static
parseStatic
revive
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