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

Method refreshScope

src/sync/watcher.ts:730–736  ·  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

728 * which those are.
729 */
730 private refreshScope(rel: string): void {
731 logDebug('Scope config changed; rebuilding watcher scope', { file: rel });
732 this.ignoreMatcher = buildScopeIgnore(this.projectRoot);
733 this.scheduleTreeRefresh();
734 this.needsFullScan = true;
735 this.scheduleSync();
736 }
737
738 /**
739 * A deleted DIRECTORY arrives as one event on the directory's own path —

Callers 1

handleChangeMethod · 0.95

Calls 4

scheduleTreeRefreshMethod · 0.95
scheduleSyncMethod · 0.95
logDebugFunction · 0.90
buildScopeIgnoreFunction · 0.90

Tested by

no test coverage detected