ryuta46 / vscode-multi-command

Visual Studio Code Plugin named multi-command
MIT License
229 stars 14 forks source link

Sometimes the command freezes for a short time #55

Open stopdesign opened 2 years ago

stopdesign commented 2 years ago

Sometimes (one time out of five maybe) it freezes for about 500-1000 ms before the command starts working. During this time I can move the cursor and type normally. So the desired effect could apply to the different lines.

This is the command config I use:

    {
        "key": "cmd+/",
        "command": "extension.multiCommand.execute",
        "args": {
          "sequence": [
            "editor.action.commentLine",
            "cursorDown"
          ]
        },
        "when": "editorTextFocus"
    },

When I press the hotkey twice it looks like the commands in the two sequences are mixed:

  1. sequence-1.command-1
  2. sequence-2.command-1
  3. sequence-1.command-2
  4. sequence-2.command-2

I can reproduce the issue with other commands (one command in the sequence as well). The same commands work fine when I use them directly.

I had the same (seemingly) issue with "Python Indent" (KevinRose.vsc-python-indent) so I disabled it.