(path: string)
| 422 | export const subscribeToKeybindingChanges = keybindingsChanged.subscribe |
| 423 | |
| 424 | async function handleChange(path: string): Promise<void> { |
| 425 | logForDebugging(`[keybindings] Detected change to ${path}`) |
| 426 | |
| 427 | try { |
| 428 | const result = await loadKeybindings() |
| 429 | cachedBindings = result.bindings |
| 430 | cachedWarnings = result.warnings |
| 431 | |
| 432 | // Notify all listeners with the full result |
| 433 | keybindingsChanged.emit(result) |
| 434 | } catch (error) { |
| 435 | logForDebugging(`[keybindings] Error reloading: ${errorMessage(error)}`) |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | function handleDelete(path: string): void { |
| 440 | logForDebugging(`[keybindings] Detected deletion of ${path}`) |
no test coverage detected