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

resolve glob tasks in configure default build task #209385

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Apr 2, 2024

When running configure default build task, we didn't resolve glob tasks, so the quick pick would present all as options, not listing the one that was the current default. This has never worked before AFAICT.
 
The fix is to resolve the glob tasks rather than just checking if task.isDefault (which can be a string in the case of glob tasks), is defined.

fixes #191745

The issue contains good repro steps. I'm following those in the below gif to show that it works now.

demo.mov

@meganrogge meganrogge requested a review from Tyriar April 2, 2024 21:29
@meganrogge meganrogge self-assigned this Apr 2, 2024
@meganrogge meganrogge added this to the April 2024 milestone Apr 2, 2024
@meganrogge meganrogge enabled auto-merge April 2, 2024 21:35
Tyriar
Tyriar previously requested changes Apr 2, 2024
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't use as any for privates anymore

@meganrogge meganrogge requested a review from Tyriar April 3, 2024 00:07
@meganrogge meganrogge merged commit 1813b35 into main Apr 3, 2024
6 checks passed
@meganrogge meganrogge deleted the merogge/glob-tasks branch April 3, 2024 02:09
@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
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.

tasks.json isDefault globs not working in configure default build task quickpick
3 participants