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

Fixes #95162: preLaunchTask should complete before resolveDebugConfig… #96758

Closed
wants to merge 4 commits into from

Conversation

gustavomassa
Copy link

@gustavomassa gustavomassa commented May 1, 2020

This PR fixes #95162

  • The preLaunchTask was being executed on the final execution of createSession function, calling the runTaskAndCheckErrors function passing the preLaunchTask string name as taskId parameter.

  • When preLaunchTask is undefined/null, the taskId is also undefined/null, resolving a null promise, consequently resulting in a successful task.

  • The substituteVariables function is responsible for calling the execution of command:PickProcess, therefore the preLaunchTask should exec before.

@msftclas
Copy link

msftclas commented May 1, 2020

CLA assistant check
All CLA requirements met.

@alexr00 alexr00 self-assigned this May 1, 2020
@daniv-msft
Copy link

Hi @alexr00 ,

Could you please provide an estimation on how long it usually takes to approve this kind of PRs and integrate them in VS Code?
This bug is blocking us as well, as our scenario relies on injecting environment variables in the debug session, and for that we need the preLaunchTask to run before resolveDebugConfiguration.

Thanks,
Dan

@alexr00 alexr00 assigned weinand and unassigned alexr00 Jul 16, 2020
@alexr00
Copy link
Member

alexr00 commented Jul 16, 2020

@daniv-msft this PR fell off my radar, and it looks like it would be better reviewed by one of the folk who works on debug. I've re-assigned to the appropriate person.

@daniv-msft
Copy link

Thank you for your reply @alexr00!

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 20, 2020
@weinand weinand added this to the July 2020 milestone Jul 20, 2020
@isidorn
Copy link
Contributor

isidorn commented Jul 29, 2020

Thank you for the PR and sorry for the slow response I was on vacation.
I have commented here #95162 (comment)
Due to that pushing this to On-Deck. If you have thoughts please comment on the issue, thanks!

@isidorn isidorn modified the milestones: July 2020, On Deck Jul 29, 2020
@isidorn
Copy link
Contributor

isidorn commented Aug 3, 2020

As discussed in #95162
We will do a different approach. Due to that closing this PR.
Thanks anyways!

@isidorn isidorn closed this Aug 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Launch preLaunchTask should complete before resolveDebugConfiguration
6 participants