-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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 to pass arguments to command-based variables #38327
Comments
I'm hoping to implement #50758 as an extension – any news on this feature request? |
@weinand should we close this? |
@isidorn is this functionality available somehow? I'd love to be able to provide a parameter to a contributed command (for use in It doesn't seem like there's even a good hack to make that happen though – even if I parse the configuration to consume the parameter in a different way, the user is shown an error on unrecognized configuration options. So the only way to provide information to a command is by somehow embedding it in existing configuration options. |
Would love for this feature to be supported |
Next week we will support passing arguments to command based variables via #64362: {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${input:askForXYZ}"
}
],
"inputs": [
{
"id": "askForXYZ",
"type": "command",
"description": "The XYZ to use"
"command": "extension.foobar.someCommand",
}
]
} |
I don't understand your question but "input" variables (like the example from above) will be supported in task.json too. |
if i'm providing tasks configuration via |
Are you able to use other variables, e.g. Sorry, I cannot give you a better answer because this issue is "debug" related, and I'm not an expert on "tasks". |
this feature has become available via #64362. |
For launch.json and task.json configuration files VS Code supports variables that are based on commands. One limitation of this mechanism is that it is not possible to pass additional arguments to the command.
Examples:
The text was updated successfully, but these errors were encountered: