()
| 240 | let globalFileWatcher: FileWatcher | null = null; |
| 241 | |
| 242 | export function getFileWatcher(): FileWatcher { |
| 243 | if (!globalFileWatcher) { |
| 244 | globalFileWatcher = new FileWatcher({ |
| 245 | debounceMs: 1000, // 1 second debounce |
| 246 | maxDepth: 10, |
| 247 | }); |
| 248 | } |
| 249 | return globalFileWatcher; |
| 250 | } |
| 251 | |
| 252 | export function startFileWatching(): void { |
| 253 | const watcher = getFileWatcher(); |