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

Function performIndexing

src/index.ts:1310–1325  ·  view source on GitHub ↗
(project: ProjectState, incrementalOnly?: boolean)

Source from the content-addressed store, hash-verified

1308}
1309
1310async function performIndexing(project: ProjectState, incrementalOnly?: boolean): Promise<void> {
1311 let nextMode = incrementalOnly;
1312 for (;;) {
1313 await performIndexingOnce(project, nextMode);
1314
1315 const shouldRunQueuedRefresh = project.autoRefresh.consumeQueuedRefresh(
1316 project.indexState.status
1317 );
1318 if (!shouldRunQueuedRefresh) return;
1319
1320 if (process.env.CODEBASE_CONTEXT_DEBUG) {
1321 console.error('[file-watcher] Running queued auto-refresh');
1322 }
1323 nextMode = true;
1324 }
1325}
1326
1327async function shouldReindex(paths: ToolPaths): Promise<boolean> {
1328 try {

Callers 4

createToolContextFunction · 0.70
ensureProjectInitializedFunction · 0.70
ensureProjectWatcherFunction · 0.70

Calls 1

performIndexingOnceFunction · 0.85

Tested by

no test coverage detected