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