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

Any way to pass variable to command? #74

Open
anshibanov opened this issue Apr 15, 2022 · 1 comment
Open

Any way to pass variable to command? #74

anshibanov opened this issue Apr 15, 2022 · 1 comment

Comments

@anshibanov
Copy link

I want realize button that will run play with specific tag. Example "command": "ansible-playbook run ${file} --tags=<VARIABLE> Any way to pass variable to command?

@lukhirt
Copy link

lukhirt commented Jun 28, 2023

Hi, I have similar problem. The main page lists an "args" parameter for a command. This is similar to what can be found in command specification in keybindings.json, however here it doesn't seem to work.

"command": "workbench.action.tasks.runTask",
"args": {
  "task": "openBuildLog",
},

or

"command": "workbench.action.tasks.runTask",
"args": "openBuildLog",

Both versions work when specified in keybindings.json.

Cheers

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

No branches or pull requests

2 participants