MCPcopy Index your code
hub / github.com/modelcontextprotocol/ext-apps / ViewFileWatch

Interface ViewFileWatch

examples/pdf-server/server.ts:377–382  ·  view source on GitHub ↗

* Active fs.watch per view. Only created for local files when interact is * enabled (stdio). Watcher is re-established on `rename` events to survive * atomic writes (vim/vscode write-to-tmp-then-rename changes the inode).

Source from the content-addressed store, hash-verified

375 * atomic writes (vim/vscode write-to-tmp-then-rename changes the inode).
376 */
377interface ViewFileWatch {
378 filePath: string;
379 watcher: fs.FSWatcher;
380 lastMtimeMs: number;
381 debounce: ReturnType<typeof setTimeout> | null;
382}
383const viewFileWatches = new Map<string, ViewFileWatch>();
384
385/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…