MCPcopy Create free account
hub / github.com/modelcontextprotocol/ext-apps / stopFileWatch

Function stopFileWatch

examples/pdf-server/server.ts:512–522  ·  view source on GitHub ↗
(viewUUID: string)

Source from the content-addressed store, hash-verified

510}
511
512export function stopFileWatch(viewUUID: string): void {
513 const entry = viewFileWatches.get(viewUUID);
514 if (!entry) return;
515 if (entry.debounce) clearTimeout(entry.debounce);
516 try {
517 entry.watcher.close();
518 } catch {
519 /* ignore */
520 }
521 viewFileWatches.delete(viewUUID);
522}
523
524// =============================================================================
525// URL Validation & Normalization

Callers 3

server.test.tsFile · 0.90
pruneStaleQueuesFunction · 0.85
startFileWatchFunction · 0.85

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…