microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.65k stars 28.68k forks source link

`when` condition set to `false` upon configuring keybinding #224557

Open bpasero opened 1 month ago

bpasero commented 1 month ago

As soon as I put in F12 as keybinding for toggle devtools, its when condition changes to false:

Image

ulugbekna commented 1 month ago

Thanks for filing the issue!

How do you create the keybinding? Do you put set any when clause?

This's most likely because we do a rewriting step for when clauses to inline static context keys (eg isWeb, isDevelopment) to not show shortcut hints for shortcuts that would never work

bpasero commented 1 month ago

@ulugbekna I use the keybindings editor in this case (UI). I.e. double click into the existing keybinding to change it to F12.