-
Notifications
You must be signed in to change notification settings - Fork 30.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
PreLaunchTask: support passing parameters from configuration to preLaunchTask #27157
Comments
This needs work on both end the debugger and the task framework. |
Has there been any movement on this one? something I just ran into and would make life much easier if it were available. |
This would help me a ton too. I want to be able to select an option in launch.json, and pass that option to the subsequent pre and post launch tasks. The way I have it set up now means that I have to choose the option 3 separate times |
I'm also running into issues with this. I have a launch configuration that prompts for the IP address. It then has a preLaunchTask to do some preparation on the device but that task then has to prompt for the same IP address again. |
Related to this: |
|
Thanks for clarifying. I feel like I fell into the same trap as many do - difficulty with discerning where VSCode's responsibility ends and extensions' begins. |
Currently looking at the same issue. Launch configuration that prompts for the target's IP address. I'd like to pass that IP address to a |
Any word on this? This would still be incredibly helpful |
+1 |
+1 |
Have an idea how to implement this feature: launch.json configurations: add field "preLaunchTaskInputs" of type "preLaunchTask": "Paint my car",
"preLaunchTaskInputs": {
"SelectColor": "Pink"
} And task will have it's input value already and will not prompt user. Also, prob would be cool to have something like Examples: |
+1 |
+1 for this feature. I think that Interestingly enough, if I define an input As others did, the temporary workaround that I am using is to define the input |
Currently when invoking preLaunchTask, the only possible is the task name. It would be great if properties in the associated configuration can be passed to preLaunchTask.
Scenario:
I am writing a pre-launch task to automate remote node.js debugging. The pre-launch task will launch the node.js process remotely and establish a SSH tunnel (port forwarding) back to local computer. And then debugger connects to that forwarded port to start debugging.
The node.js debugger port is specified in launch.json file, and there is no good way for the pre-launch task to get the debugger port.
The problem can be solved if preLaunchTask can take parameters from the configuration. For example, tasks.json allow '$config.port' as args:
@isidorn @weinand
The text was updated successfully, but these errors were encountered: