You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for parenthesis in "when" conditions #91473
The when expression that contains parentheses which we set for a keybinding defined in the contribution point of our extension results into a corrupted (invalidly transformed expression in user's keybinding settings), e.g. the following declaration:
Support for parentheses in "when" clauses is now available in VS Code Insiders and is planned to be available in the March release of VS Code early next month.
We rewrote the parser to make it more flexible, correct, and easier to change. You can read more about upcoming changes: new features, breakages, migration help in this issue. You can subscribe to that issue to get more updates and/or leave us feedback there.
We also encourage you to test your extensions with VS Code Insiders to make sure things work as you expect, and use the new linter mentioned in the issue above to see if some of the when-clauses you have contain errors.
Reacted by Diana, Matronator, Spongman and Joseph Kohlmann
Activity
vscode: fix vscode-vim keybindings conflict
Merge #3308
yasintz commentedon Mar 4, 2020
It should be able to properly handle something like
( (a&&(b|| c) && d) ) && !e && false && true || !(f != g) && (h == i).sandy081 commentedon Apr 2, 2020
Keybindings editor is rendering the text generated by when context serialize method.
29 remaining items
starball5 commentedon Feb 19, 2023
Related Stack Overflow question: Is there a NOT operator in VSCode Keybindings JSON to invert an entire "when" clause?
Please also remember to update the docs if/when this is implemented:
ulugbekna commentedon Mar 8, 2023
Hi everyone! 👋🙂
Support for parentheses in "when" clauses is now available in VS Code Insiders and is planned to be available in the March release of VS Code early next month.
We rewrote the parser to make it more flexible, correct, and easier to change. You can read more about upcoming changes: new features, breakages, migration help in this issue. You can subscribe to that issue to get more updates and/or leave us feedback there.
We also encourage you to test your extensions with VS Code Insiders to make sure things work as you expect, and use the new linter mentioned in the issue above to see if some of the when-clauses you have contain errors.