New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing keybindings with when clauses not working anymore #106524
Comments
Also affects Windows. It's a regression, it used to work with 1.48.
|
@spasche Hi Spasche, I found this bug with the 1.49. |
It seems it's not possible to remove other keybindings as well. None of these work to remove [
{
"key": "ctrl+k f",
"command": "workbench.action.terminal.focusFind",
"when": "terminalFindFocused && terminalProcessSupported || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+f",
"command": "-workbench.action.terminal.focusFind",
"when": "terminalFindFocused && terminalProcessSupported || terminalFocus && terminalProcessSupported"
},
{
"key": "ctrl+f",
"command": "-actions.find",
"when": "terminalFocus && terminalProcessSupported"
}
] |
This works:
I'm guessing the issue is that |
Testcase on #106524 (comment) also doesn't work and doesn't contain So the issue may not be related to |
@spasche good point, tested and I can see that too. Updated title. |
Yup, this does not work: {
"key": "ctrl+f",
"command": "-workbench.action.terminal.focusFind",
"when": "terminalFocus"
} This does: {
"key": "ctrl+f",
"command": "-workbench.action.terminal.focusFind"
} |
This is a problem limited for now to the terminal actions and it has to do with the way the default keybindings are constructed in code by using
But the context keys do not support parentheses in their serialized form (that is intentional), so we distribute the
Unfortunately there is a bug in that code path where the normalized form is not fully equal to the deserialized form. The normalized form contains an extra The workaround is to remove the keybindings without a |
Steps to Reproduce:
Preference -> Keyboard shortcuts -> search "terminal.find next" -> Remove Keybinding -> doesn't work
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: