Skip to content

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

@futuremotiondev

Description

@futuremotiondev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions