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

Method stopWatching

src/ui-server/api/events.ts:301–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299 }
300
301 private stopWatching(): void {
302 if (this.indexTimer) {
303 clearTimeout(this.indexTimer);
304 this.indexTimer = null;
305 }
306 this.indexPendingSince = 0;
307 try {
308 this.indexWatcher?.close();
309 } catch {
310 /* already closed */
311 }
312 this.indexWatcher = null;
313 this.indexUp = false;
314 this.sourceWatcher?.stop();
315 this.sourceWatcher = null;
316 this.sourceUp = false;
317 }
318
319 /**
320 * The project tree, through the engine's watcher with the sync taken out.

Callers 2

closeMethod · 0.95
dropMethod · 0.95

Calls 2

closeMethod · 0.65
stopMethod · 0.65

Tested by

no test coverage detected