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

Function joinPathsToUri

core/util/uri.ts:118–125  ·  view source on GitHub ↗
(uri: string, ...pathSegments: string[])

Source from the content-addressed store, hash-verified

116}
117
118export function joinPathsToUri(uri: string, ...pathSegments: string[]) {
119 let baseUri = uri;
120 if (baseUri.at(-1) !== "/") {
121 baseUri += "/";
122 }
123 const segments = pathSegments.map((segment) => pathToUriPathSegment(segment));
124 return URI.resolve(baseUri, segments.join("/"));
125}
126
127export function joinEncodedUriPathSegmentToUri(
128 uri: string,

Callers 15

walkMethod · 0.90
loadJsonMcpConfigsFunction · 0.90
createNewPromptFileV2Function · 0.90
getAllPromptFilesFunction · 0.90
uri.test.tsFile · 0.90
resolveRelativePathInDirFunction · 0.90
getDotContinueSubDirsFunction · 0.90
createNewAssistantFileFunction · 0.90

Calls 1

pathToUriPathSegmentFunction · 0.85

Tested by

no test coverage detected