Skip to content

config: Resolve variables returned by commands - #246641

Merged
Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
guiserle:issue246633
Apr 16, 2025
Merged

Connor Peet (connor4312) merged 2 commits into
microsoft:mainfrom
guiserle:issue246633

Conversation

@guiserle

Copy link
Copy Markdown
Contributor

Fixes #246633

This PR fixes a regression on c22175d#diff-e482f7894e136562bb05760b6da7f5d40e4721aa06b1432c753cdec530d23850 that causes variables returned by commands not being resolved.

The proposed solution is expose AbstractVariableResolverService.evaluateSingleVariable to child classes so BaseConfigurationResolverService can use the default resolution method for any variable nested within a command or input variable.

Two pass should no longer needed since non-interactive and contributed variables are also resolved by `resolveWithInteraction`
@connor4312
Connor Peet (connor4312) enabled auto-merge (squash) April 16, 2025 16:44
@vs-code-engineering vs-code-engineering Bot added this to the April 2025 milestone Apr 16, 2025
@connor4312

Connor Peet (connor4312) commented Apr 16, 2025 •

Copy link
Copy Markdown
Member

guiserle (@guiserle) thanks for the contribution! Should be good to go once you do the CLA 🙌

@guiserle

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Analog Devices"

@connor4312
Connor Peet (connor4312) merged commit f98aa1f into microsoft:main Apr 16, 2025
@guiserle

Copy link
Copy Markdown
Contributor Author

Connor Peet (@connor4312) thanks for the quick review and approval.

PS. It took a little while for my company to provide the approval, apologies for the delay on that

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators May 31, 2025
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.

Command variables can no longer return config variables

3 participants