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

Fix GitHub issue 1036: debug command variables throw exception #1047

Merged
merged 10 commits into from
Feb 6, 2020

Conversation

andreeis
Copy link
Contributor

@andreeis andreeis commented Feb 6, 2020

#1036

This is a regression from the multi root feature shipped with 1.3 beta.
The various debug/launch commands expect now an argument of type WorkspaceFolder or a string, which represents the active folder of the json that is invoking them.
In the json of the repro there is no such argument defined and VSCode is automatically passing the whole debug configuration to the launch commands. The type mismatch is causing various issues, including the exception "cannot read property ... of undefined".

This change is fixing the single root case and addresses a few multi root scenarios. More fixes for the whole debug/launch commands experience with multi root will follow, including new ways of defining the workspace folder argument in launch.json.

@andreeis andreeis requested a review from bobbrow February 6, 2020 19:55
@andreeis andreeis merged commit c7d8576 into develop Feb 6, 2020
@andreeis andreeis deleted the dev/andris/cmake_tools/github_issue_1036 branch February 6, 2020 20:22
@bobbrow bobbrow added this to the 1.3.0 milestone Feb 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants