MCPcopy Create free account
hub / github.com/angular/angular / toUri

Function toUri

ngp-vscode-ng-language-service/tests/test_helpers.ts:177–184  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

175}
176
177async function toUri(filePath: string): Promise<string> {
178 try {
179 const rawPath = filePath.startsWith('file://') ? fileURLToPath(filePath) : filePath;
180 return URI.file(await normalizePath(rawPath)).toString();
181 } catch {
182 return filePath;
183 }
184}
185
186class LspClient {
187 private currentVersion = 0;

Callers 12

didOpenMethod · 0.70
didChangeMethod · 0.70
didCloseMethod · 0.70
didChangeWatchedFilesMethod · 0.70
hoverMethod · 0.70
definitionMethod · 0.70
completionMethod · 0.70
referencesMethod · 0.70
prepareRenameMethod · 0.70
renameMethod · 0.70
signatureHelpMethod · 0.70
diagnosticMethod · 0.70

Calls 3

toStringMethod · 0.65
normalizePathFunction · 0.50
fileMethod · 0.45

Tested by

no test coverage detected