Skip to content

Prevent duplicate text in workspace folder picker when path has no parent (fix #183418) #183427

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

Merged
merged 3 commits into from
May 26, 2023

Conversation

gjsjohnmurray
Copy link
Contributor

This PR fixes #183418, which contains repro steps suitable for testing.

@meganrogge meganrogge requested review from Tyriar and meganrogge May 25, 2023 13:29
@meganrogge meganrogge added this to the May 2023 milestone May 25, 2023
@meganrogge meganrogge assigned bpasero and unassigned meganrogge May 25, 2023
@meganrogge meganrogge requested review from bpasero and removed request for Tyriar and meganrogge May 25, 2023 13:31
@bpasero bpasero modified the milestones: May 2023, Backlog May 25, 2023
Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

This change seems strange to me. I think the intent here is to not show description when the result matches that of label. I would prefer a solution that computes label and description and then compares both and ignoring description when they are the same. Anything else is strange path magic that we should stay away from imho.

@gjsjohnmurray
Copy link
Contributor Author

Pushed a change which gives this for the testcase:

image

@gjsjohnmurray gjsjohnmurray requested a review from bpasero May 25, 2023 19:20
@bpasero bpasero modified the milestones: Backlog, May 2023 May 26, 2023
@bpasero bpasero enabled auto-merge (squash) May 26, 2023 04:04
@bpasero bpasero merged commit fb335eb into microsoft:main May 26, 2023
@gjsjohnmurray gjsjohnmurray deleted the fix-183418 branch May 26, 2023 07:00
meganrogge pushed a commit that referenced this pull request May 26, 2023
…rent (fix #183418) (#183427)

* Prevent duplicate text in workspace folder picker when path has no parent (fix #183418)

* Instead, blank description when it matched label

* Set `description` undefined when same as `label`
@github-actions github-actions bot locked and limited conversation to collaborators Jul 10, 2023
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.

Workspace folder picker entry descriptions are suboptimal for some filesystems
6 participants