MCPcopy
hub / github.com/continuedev/continue / localPathOrUriToPath

Function localPathOrUriToPath

core/util/pathToUri.ts:18–26  ·  view source on GitHub ↗
(localPathOrUri: string)

Source from the content-addressed store, hash-verified

16}
17
18export function localPathOrUriToPath(localPathOrUri: string): string {
19 try {
20 return fileURLToPath(localPathOrUri);
21 } catch (e) {
22 // console.log("Received local filepath", localPathOrUri);
23
24 return localPathOrUri;
25 }
26}

Callers 7

addToTestDirFunction · 0.90
getHoleContextMethod · 0.90
scanRecursivelyMethod · 0.90
doLoadConfigFunction · 0.90
deleteChainMethod · 0.85
_generatePromptsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected