exceedsystem / vscode-macros

This extension gives the macro features to your vscode.
https://marketplace.visualstudio.com/items?itemName=EXCEEDSYSTEM.vscode-macros
MIT License
38 stars 2 forks source link

Weird interaction with workbench.action.terminal.runSelectedText #4

Closed tuannguyen8390 closed 2 years ago

tuannguyen8390 commented 2 years ago

Hi there,

Really love the program :). Have great success with it.

However one particular problem I had with workbench.action.terminal.runSelectedText

in settings.json

"macros": {
        "ExecTerminalAndCursorDown": [
            "workbench.action.terminal.runSelectedText",
            "cursorDown"
        ]
}

in keybindings.json

{
        "key": "ctrl+enter",
        "command": "macros.ExecTerminalAndCursorDown",
        "when": "editorTextFocus"
    }

The program seems confused and attempts to run the next line instead of the current line for some weird reason. Any idea why?

Removing the "cursorDown" or "workbench.action.terminal.runSelectedText" in settings.json are all working as intended.

Many thanks,

Tuan