MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / resolvePath

Method resolvePath

src/platform/vscode-path/resources.ts:279–291  ·  view source on GitHub ↗
(base: URI, path: string)

Source from the content-addressed store, hash-verified

277 }
278
279 resolvePath(base: URI, path: string): URI {
280 if (base.scheme === Schemas.file) {
281 const newURI = URI.file(paths.resolve(originalFSPath(base), path));
282 return base.with({
283 authority: newURI.authority,
284 path: newURI.path
285 });
286 }
287 path = extpath.toPosixPath(path); // we allow path to be a windows path
288 return base.with({
289 path: paths.posix.resolve(base.path, path)
290 });
291 }
292
293 // --- misc
294

Callers

nothing calls this directly

Calls 4

originalFSPathFunction · 0.85
resolveMethod · 0.65
fileMethod · 0.45
withMethod · 0.45

Tested by

no test coverage detected