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

Use 'resolveDebugConfigWithSubVariables' #6328

Merged
merged 2 commits into from
Oct 15, 2020

Conversation

WardenGnaw
Copy link
Member

This PR uses the
DebugConfigurationProvider.resolveDebugConfigurationWithSubstitutedVariables
which allows the debug configuration to wait for the preLaunchTask to
complete before continuing on and resolving environment variables or processes
that may have been set in the 'tasks.json'.

This also resolves the logging issue where the 'Build and Debug Active
File' preLaunchTask uses the current file but we switch to the output
window for logging.

Undo: #6304 but VS Code bug is still valid.

Related Issues: #5287

This PR uses the
DebugConfigurationProvider.resolveDebugConfigurationWithSubstitutedVariables
which allows the debug configuration to wait for the preLaunchTask to
complete before continuing on and resolving variables that may have been
set in the 'tasks.json'.

This also resolves the logging issue where the 'Build and Debug Active
File' preLaunchTask uses the current file but we switch to the output
window for logging.
@WardenGnaw WardenGnaw added debugger enhancement Improvement to an existing feature labels Oct 15, 2020
@WardenGnaw WardenGnaw self-assigned this Oct 15, 2020
@WardenGnaw WardenGnaw merged commit 2ec525e into master Oct 15, 2020
@sean-mcmanus
Copy link
Collaborator

@WardenGnaw I think this broke Linux/Mac debugging with F5 (Build and Debug Active File).

sean-mcmanus added a commit that referenced this pull request Oct 16, 2020
sean-mcmanus added a commit that referenced this pull request Oct 16, 2020
@bobbrow bobbrow deleted the dev/waan/waitForPrelaunchTask branch January 5, 2021 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debugger enhancement Improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants