()
| 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. |