Skip to content
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

Bug: This extension disables my snippet shortcuts. (editor.action.insertSnippet) in keybindings.json #26

Open
futuremotiondev opened this issue Jul 19, 2022 · 0 comments

Comments

@futuremotiondev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant