* 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)
| 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 — |
no test coverage detected