MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / shouldReindex

Function shouldReindex

src/index.ts:1327–1334  ·  view source on GitHub ↗
(paths: ToolPaths)

Source from the content-addressed store, hash-verified

1325}
1326
1327async function shouldReindex(paths: ToolPaths): Promise<boolean> {
1328 try {
1329 await fs.access(paths.keywordIndex);
1330 return false;
1331 } catch {
1332 return true;
1333 }
1334}
1335
1336async function refreshDiscoveredProjectsForKnownRoots(): Promise<void> {
1337 clearDiscoveredProjectPaths();

Callers 1

ensureProjectInitializedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected