ryuta46 / vscode-multi-command

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

Pass Argument to command, not working. #57

Closed NorkzYT closed 7 months ago

NorkzYT commented 2 years ago

My settings.json file.

I want the command to open a file and when it's started, only workbench.action.quickOpen runs and not the arg that is stated. How would I fix this?

{
    "multiCommand.commands": [{
            "command": "openFile",
            "sequence": [
                "workbench.action.quickOpen",
                { "command": "type", "args": { "text": "Git-Automations.sh" } }
            ]
        }

    ]

}

I want to do this for an automation that I need.

NorkzYT commented 2 years ago

Solution: Missed the following:

{
    "command": "multiCommand.checkoutDevelop",
    "sequence": [
        {
            "command": "command-runner.run",
            "args": { "command": "git checkout develop" }
        },
        "git.sync"
    ]
}