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

Function handleDelete

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

Source from the content-addressed store, hash-verified

437}
438
439function handleDelete(path: string): void {
440 logForDebugging(`[keybindings] Detected deletion of ${path}`)
441
442 // Reset to defaults when file is deleted
443 const defaultBindings = getDefaultParsedBindings()
444 cachedBindings = defaultBindings
445 cachedWarnings = []
446
447 keybindingsChanged.emit({ bindings: defaultBindings, warnings: [] })
448}
449
450/**
451 * Get the cached keybinding warnings.

Callers

nothing calls this directly

Calls 3

getDefaultParsedBindingsFunction · 0.85
logForDebuggingFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected