ExtendScript-for-Visual-Studio-Code
ExtendScript-for-Visual-Studio-Code copied to clipboard
Bug: This extension disables my snippet shortcuts. (editor.action.insertSnippet) in keybindings.json
I haven't tested with other shortcuts, but ExtendScript definitely disables/conflicts with my shortcut Ctrl+Q that I use to insert a predefined logging snippet. If I enable ES, it doesn't work. If I disable it, it works again.
I don't know what the cause is, but I can try other shortcuts to see how widespread the error is and possibly give you steps to reproduce.
Here is an excerpt from my keybindings.json file:
{
"key": "ctrl+q",
"command": "editor.action.insertSnippet",
"args": { "name": "JSX Quick Log" },
"when": "editorTextFocus && editorLangId == javascriptreact",
},
Here's the snippet definition in snippets.code-snippets
{
"JSX Quick Log": {
"prefix": "log",
"body": [
"alert(\"$TM_SELECTED_TEXT: \" + \"\\\"\" + $TM_SELECTED_TEXT + \"\\\"\");"
],
"description": "JSX Quick Log"
}
}
Would appreciate a fix if you can find the conflict!
Thanks, Jay