Closed ahshum closed 2 years ago
I don't see anything wrong with me here. The configuration (https://github.com/AnWeber/vscode-httpyac/blob/main/package.json#L1233-L1237) looks similar to the example in VSCode (https://code.visualstudio.com/api/references/contribution-points#keybinding-example). I will try to reproduce your behavior.
@ahshum Removing the key will add the following settings to my Keybindings.json. However, I can still use the keyboard shortcut. If I remove the when
clause the keyboard shortcut does not work anymore. But I can produce the same behavior with the built-in keyboard shortcuts (cannot reproduce again with default keybindings). I think this is a bug in vscode.
{
"key": "ctrl+alt+r",
"command": "-httpyac.send",
"when": "editorTextFocus && editorLangId in 'httpyac.supportedLanguages'"
}
I think the problem arises from httpyac.supportedLanguages
context. VSCode change the when clause from editorLangId in httpyac.supportedLanguages
to editorLangId in 'httpyac.supportedLanguages'
I created microsoft/vscode#158618, where I recreate the error with a simple extension. I only use code from the documentation, so I currently think that the error is in VSCode.
My issue was closed as duplicate of microsoft/vscode#157751. I think I can close this issue with that. Workaround is to remove the quotes.
@AnWeber Thanks for taking a look.
Steps to reproduce
Expected behavior
The new shortcut should work and free up the old shortcut key
Actual behavior
The new shortcut key doesn't work and the old shortcut key is still working
Addition information
httpyac version: v5.6.2 vscode version: 1.69.2