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

Function getPathToRemoteConfig

core/util/paths.ts:350–363  ·  view source on GitHub ↗
(remoteConfigServerUrl: string)

Source from the content-addressed store, hash-verified

348}
349
350export function getPathToRemoteConfig(remoteConfigServerUrl: string): string {
351 let url: URL | undefined = undefined;
352 try {
353 url =
354 typeof remoteConfigServerUrl !== "string" || remoteConfigServerUrl === ""
355 ? undefined
356 : new URL(remoteConfigServerUrl);
357 } catch (e) {}
358 const dir = path.join(getRemoteConfigsFolderPath(), url?.hostname ?? "None");
359 if (!fs.existsSync(dir)) {
360 fs.mkdirSync(dir);
361 }
362 return dir;
363}
364
365export function getConfigJsonPathForRemote(
366 remoteConfigServerUrl: string,

Callers 2

getConfigJsPathForRemoteFunction · 0.85

Calls 1

Tested by

no test coverage detected