ryuta46 / vscode-multi-command

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

Run external command #17

Closed Silverbug closed 4 years ago

Silverbug commented 5 years ago

Hi,

This might be a really basic thing I've overlooked, but can you call external commands (bash) as part of a sequence? and have them run synchronously ?

Cheers,

Paul

ryuta46 commented 4 years ago

You can do that by a combination with other extension like command-runner. https://marketplace.visualstudio.com/items?itemName=edonet.vscode-command-runner

Sample setting is here.

    "multiCommand.commands": [
        {
            "command": "multiCommand.runExternalCommand",
            "sequence": [
                {
                    "command": "command-runner.run",
                    "args": { "command": "echo file" }
                }
            ]            
        },
    ],
    "command-runner.commands": {
        "echo file": "echo ${file}"
    }