* 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).
| 375 | * atomic writes (vim/vscode write-to-tmp-then-rename changes the inode). |
| 376 | */ |
| 377 | interface ViewFileWatch { |
| 378 | filePath: string; |
| 379 | watcher: fs.FSWatcher; |
| 380 | lastMtimeMs: number; |
| 381 | debounce: ReturnType<typeof setTimeout> | null; |
| 382 | } |
| 383 | const viewFileWatches = new Map<string, ViewFileWatch>(); |
| 384 | |
| 385 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…