Skip to content

Fixed issue -filtering by extension in Change Language Mode - #112435

Merged
Benjamin Pasero (bpasero) merged 3 commits into
microsoft:masterfrom
myovan:myovan/filter-by-extension
Dec 17, 2020
Merged

Benjamin Pasero (bpasero) merged 3 commits into
microsoft:masterfrom
myovan:myovan/filter-by-extension

Conversation

@myovan

@myovan myovan commented Dec 14, 2020

Copy link
Copy Markdown
Contributor

This PR fixes #106886

Adding file extensions to a language's description allows a user to filter for a specific extension name (e.g. jsx will return JavaScript React)

ezgif com-gif-maker (1)

Was looking at #107939 and saw that the preferred implementation was to add meta data to quick pick list (metadata would be searchable but would not appear in the UI). Took Benjamin Pasero (@bpasero) code pointers into account. Now users can search by extension, and results are filtered, without the extensions cluttering the results.

@ghost

Deleted user (ghost) commented Dec 14, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@bpasero Benjamin Pasero (bpasero) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, this is almost what I had in mind. I think we can safely remove metaHighlights since we don't use it anywhere for rendering. The only important piece is to set the item to visible in here, but otherwise we do not need to remember the highlights on the item imho.

@bpasero

Copy link
Copy Markdown
Contributor

Christof Marti (@chrmarti) adding your for review since the changes in quick pick touch your area, let me know what you think. The gist is to have a way to associate meta information with a quick pick item that is searchable but not displayed to the user.

@bpasero
Benjamin Pasero (bpasero) merged commit 7aee2c7 into microsoft:master Dec 17, 2020
@bpasero

Copy link
Copy Markdown
Contributor

Thanks!

@chrmarti

Copy link
Copy Markdown
Collaborator

LGTM, thanks!

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

Change Language Mode drop-down should allow filtering by file extension

3 participants