Skip to content

Don't fail when resolving config variables without a folderUri.#97203

Merged
weinand merged 2 commits intomicrosoft:masterfrom
bzarco:launch-multi-root-args
Nov 18, 2020
Merged

Don't fail when resolving config variables without a folderUri.#97203
weinand merged 2 commits intomicrosoft:masterfrom
bzarco:launch-multi-root-args

Conversation

@bzarco
Copy link
Contributor

@bzarco bzarco commented May 8, 2020

Config variables cannot define a workspace folder, but resolution was using getFolderUri and failing when undefined, even though getConfigurationValue implementations have logic to handle it. This PR changes the logic to simply forward folderUri to getConfigurationValue, which can be undefined.

This PR fixes #97202

@weinand weinand added this to the May 2020 milestone May 8, 2020
@bzarco bzarco force-pushed the launch-multi-root-args branch from 0546931 to f6f56f1 Compare May 8, 2020 14:31
Config variables cannot define a workspace folder, but resolution was using `getFolderUri` and failing when undefined, even though `getConfigurationValue` implementations have logic to handle it. This PR changes the logic to simply forward folderUri to `getConfigurationValue`, which can be undefined.
@bzarco bzarco force-pushed the launch-multi-root-args branch from f6f56f1 to bed300c Compare May 21, 2020 03:07
@weinand weinand modified the milestones: May 2020, June 2020 Jun 16, 2020
@kieferrm kieferrm modified the milestones: June 2020, July 2020 Jul 6, 2020
@weinand weinand modified the milestones: July 2020, August 2020 Aug 3, 2020
@bpasero bpasero modified the milestones: August 2020, September 2020 Sep 16, 2020
@bpasero bpasero modified the milestones: September 2020, October 2020 Oct 6, 2020
@bpasero
Copy link
Member

bpasero commented Oct 6, 2020

@weinand snow-plow alarm

@weinand weinand modified the milestones: October 2020, November 2020 Oct 26, 2020
@weinand weinand merged commit 4ef843e into microsoft:master Nov 18, 2020
@weinand
Copy link
Contributor

weinand commented Nov 18, 2020

@bzarco thanks for the PR!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2021
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.

${config:<name>} variables fail to resolve in multi-root workspace launch configurations.

4 participants