vscode-languageserver-textdocument#DocumentUri TypeScript Examples
The following examples show how to use
vscode-languageserver-textdocument#DocumentUri.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: path.ts From volar with MIT License | 5 votes |
export function uriToFsPath(uri: DocumentUri) {
return upath.toUnix(URI.parse(uri).fsPath);
}
Example #2
Source File: path.ts From volar with MIT License | 5 votes |
export function fsPathToUri(fsPath: string): DocumentUri {
return URI.file(fsPath).toString();
}
Example #3
Source File: DocumentsManager.ts From vscode-groovy-lint with GNU General Public License v3.0 | 5 votes |
private currentTextDocumentUri: DocumentUri = '';