MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / refreshDiscoveredProjectsForKnownRoots

Function refreshDiscoveredProjectsForKnownRoots

src/index.ts:1336–1348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1334}
1335
1336async function refreshDiscoveredProjectsForKnownRoots(): Promise<void> {
1337 clearDiscoveredProjectPaths();
1338 await Promise.all(
1339 getKnownRootPaths().map(async (rootPath) => {
1340 const candidates = await discoverProjectsWithinRoot(rootPath, {
1341 maxDepth: PROJECT_DISCOVERY_MAX_DEPTH
1342 });
1343 for (const candidate of candidates) {
1344 registerDiscoveredProjectPath(candidate.rootPath, 'subdirectory');
1345 }
1346 })
1347 );
1348}
1349
1350async function validateClientRootEntries(
1351 rootEntries: Array<{ rootPath: string; label?: string }>

Callers 2

startHttpFunction · 0.85

Calls 4

getKnownRootPathsFunction · 0.85

Tested by

no test coverage detected