Reset all state. Stops file watchers. For testing only.
()
| 486 | |
| 487 | /** Reset all state. Stops file watchers. For testing only. */ |
| 488 | reset(): void { |
| 489 | this.stopWatching() |
| 490 | this.cache.clear() |
| 491 | this.initialized = false |
| 492 | this.initPromise = null |
| 493 | this.gitDir = null |
| 494 | this.commonDir = null |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | const gitWatcher = new GitFileWatcher() |
nothing calls this directly
no test coverage detected