()
| 459 | * Reset internal state for testing. |
| 460 | */ |
| 461 | export function resetKeybindingLoaderForTesting(): void { |
| 462 | initialized = false |
| 463 | disposed = false |
| 464 | cachedBindings = null |
| 465 | cachedWarnings = [] |
| 466 | lastCustomBindingsLogDate = null |
| 467 | if (watcher) { |
| 468 | void watcher.close() |
| 469 | watcher = null |
| 470 | } |
| 471 | keybindingsChanged.clear() |
| 472 | } |