MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / joinPath

Method joinPath

packages/vscode-shim/src/classes/Uri.ts:76–79  ·  view source on GitHub ↗

* Join a URI with path segments * * @param base - The base URI * @param pathSegments - Path segments to join * @returns A new Uri with the joined path

(base: Uri, ...pathSegments: string[])

Source from the content-addressed store, hash-verified

74 * @returns A new Uri with the joined path
75 */
76 static joinPath(base: Uri, ...pathSegments: string[]): Uri {
77 const joinedPath = path.join(base.path, ...pathSegments)
78 return new Uri(base.scheme, base.authority, joinedPath, base.query, base.fragment)
79 }
80
81 /**
82 * Create a new URI with modifications

Callers 5

Uri.test.tsFile · 0.80
webviewMessageHandlerFunction · 0.80
getUriFunction · 0.80
constructorMethod · 0.80
openClineInNewTabFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected