79757942

Date: 2025-09-07 05:00:30
Score: 0.5
Natty:
Report link

It turned out that this keybinding was in my file. It looked like this:

{
    "key": "ctrl+backspace",
    "command": "deleteWordLeft",
    "when": "textInputFocus &&  && !editorReadonly &&inlineDiffs.activeEditorWithDiffs"
},

Quite unnoticeable, isn't it?
The problem is the condition syntax error: ... textInputFocus && && !editorReadonly .... This condition is considered absent and the keystroke cannot be removed due to uncompleted when expression.

The "moral" of this is that syntax errors in keybindings.json file can lead to unpredictable results.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tech of the Absence