-
Notifications
You must be signed in to change notification settings - Fork 520
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
Use new resolveDebugConfigurationWithSubstitutedVariables() API in debug provider #2289
Comments
Awesome, I didn't know about this feature. |
There will not be time to do this in 1.8.0. |
I really want to try to get this into 1.9.0 or 1.10.0. microsoft/vscode#106946 might not get fixed; but it's possible with this change we would no longer need it (still need to investigate to be sure). |
@philliphoff I'm curious what ideas you have to deal with passing chained information. There's a few things on my mind--
|
I noted a couple of issues while investigating this.
It's been a while since either our current debug model or the |
Reopening since there is a customer ask in #3439. |
With the January 2020 (1.42) release, we have the option to use the new
resolveDebugConfigurationWithSubstitutedVariables()
API in our DockerDebugConfigurationProvider
. This gets called with any variables within the configuration having been resolved, which should allow us to dispense with our own (and known incomplete) resolution logic.In addition to that, however, with the upcoming August 2020 (1.49) release, this API will now get called after the
preLaunchTask
completes. (Current versions call the API before the task is invoked.) The implication of this change is that we should now have a hook that runs after the last chained task but before we have to return the transformed debugging configuration, and this means that we now have an opportunity to pass information between those chained tasks and the debugger (such as the name of the created container, maybe mapped ports, etc.), rather than have to statically declare or infer them.This could simplify our debugging logic and something we should look into in the near future.
The text was updated successfully, but these errors were encountered: