MCPcopy
hub / github.com/claude-code-best/claude-code / handleChange

Function handleChange

src/keybindings/loadUserBindings.ts:424–437  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

422export const subscribeToKeybindingChanges = keybindingsChanged.subscribe
423
424async 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
439function handleDelete(path: string): void {
440 logForDebugging(`[keybindings] Detected deletion of ${path}`)

Callers 1

Calls 4

loadKeybindingsFunction · 0.85
logForDebuggingFunction · 0.50
errorMessageFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected