MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / buildFileUri

Function buildFileUri

src/cm/lsp/clientManager.ts:1417–1422  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

1415}
1416
1417function buildFileUri(pathname: string): string | null {
1418 if (!pathname) return null;
1419 const normalized = pathname.startsWith("/") ? pathname : `/${pathname}`;
1420 const encoded = encodeURI(normalized).replace(/#/g, "%23");
1421 return `file://${encoded}`;
1422}

Callers 1

contentUriToFileUriFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected