Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support arguments to commands #12

Open
breathe opened this issue Aug 2, 2017 · 0 comments · May be fixed by #46
Open

Support arguments to commands #12

breathe opened this issue Aug 2, 2017 · 0 comments · May be fixed by #46

Comments

@breathe
Copy link
Contributor

breathe commented Aug 2, 2017

I added a pull request which interprets commands with spaces to mean ['command', 'arg1', 'arg2'...]

Example:

  "auto-run-command.rules": [
    {
      "condition": "isRootFolder: someFolder",
      "command": "workbench.action.tasks.runTask someTask",
      "message": "Run sometask when someFolder is opened"
    }
]

Behaviour before: show error message
New Behavior: executeCommand(["workbench.action.tasks.runTask", "someTask"])

#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant