MCPcopy Index your code
hub / github.com/continuedev/continue / uriToPath

Function uriToPath

extensions/cli/src/auth/uriUtils.ts:17–26  ·  view source on GitHub ↗
(uri: string)

Source from the content-addressed store, hash-verified

15}
16
17export function uriToPath(uri: string): string | null {
18 if (!uri.startsWith("file://")) {
19 return null;
20 }
21 try {
22 return fileURLToPath(uri);
23 } catch {
24 return null;
25 }
26}
27
28export function uriToSlug(uri: string): string | null {
29 if (!uri.startsWith("slug://")) {

Callers 2

loadFromSavedUriFunction · 0.85
uriUtils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected