MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / refreshScope

Method refreshScope

src/sync/watcher.ts:634–639  ·  view source on GitHub ↗

* A scope-defining file changed (`codegraph.json`, a `.gitignore`): rebuild * the ignore matcher and make the next sync a FULL reconcile (#1590). * * The matcher used to be built once in `start()` and kept for the watcher's * lifetime — in a long-lived MCP daemon that meant a `codegraph.

(rel: string)

Source from the content-addressed store, hash-verified

632 * which those are.
633 */
634 private refreshScope(rel: string): void {
635 logDebug('Scope config changed; rebuilding watcher scope', { file: rel });
636 this.ignoreMatcher = buildScopeIgnore(this.projectRoot);
637 this.needsFullScan = true;
638 this.scheduleSync();
639 }
640
641 /**
642 * A deleted DIRECTORY arrives as one event on the directory's own path —

Callers 1

handleChangeMethod · 0.95

Calls 3

scheduleSyncMethod · 0.95
logDebugFunction · 0.90
buildScopeIgnoreFunction · 0.90

Tested by

no test coverage detected