Skip to content

Allows for filtering by file extension in Change Language Mode - #107939

Closed
Vy N Thai (incakoala) wants to merge 2 commits into
microsoft:masterfrom
incakoala:incakoala/issue106886
Closed

Vy N Thai (incakoala) wants to merge 2 commits into
microsoft:masterfrom
incakoala:incakoala/issue106886

Conversation

@incakoala

@incakoala Vy N Thai (incakoala) commented Oct 1, 2020 •

Copy link
Copy Markdown

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)

Screen Shot 2020-10-01 at 3 10 15 PM

Screen Shot 2020-10-01 at 5 14 46 PM

(GHC's OSD)

@incakoala Vy N Thai (incakoala) changed the title Change Language Mode drop-down should allow filtering by file extension Allows for filtering by file extension in Change Language Mode Oct 2, 2020
@bpasero Benjamin Pasero (bpasero) added this to the October 2020 milestone Oct 2, 2020
@bpasero

Copy link
Copy Markdown
Contributor

Thanks for the PR. While this solves the issue I wonder if this visually is too hectic now:

image

I wonder if a better approach would be to:

  • allow to match on the file extensions when typed
  • not show the extensions in the UI

In other words, as a user I can find a language by typing e.g. "hpp" and C++ appears but we do not show the extensions in the UI, we just allow to find it:

image

@misolori Martin Aeschlimann (@aeschli) maybe you have more UI ideas.

@miguelsolorio

Copy link
Copy Markdown
Contributor

I had the same thought about it being too busy. Could we add meta data to the quick pick list? Seems like that would be beneficial as we do that in the extensions and settings search (but those are "queries").

@bpasero

Copy link
Copy Markdown
Contributor

@misolori to clarify what you mean: this metadata would be searchable but would not appear in the UI, right?

@miguelsolorio

Copy link
Copy Markdown
Contributor

Benjamin Pasero (@bpasero) correct

@bpasero

Copy link
Copy Markdown
Contributor

Vy N Thai (@incakoala) would you feel comfortable doing such a change? Maybe Tomer Stav (@tomerstav) could also help out, given the work on #107089

Fundamentally I think it requires some changes to the IQuickPick API to add text that is searchable when filtering but does not appear in the UI. Maybe Christof Marti (@chrmarti) as widget owner could comment if something like this already exists.

@bpasero
Benjamin Pasero (bpasero) marked this pull request as draft October 5, 2020 17:02
@tomerstav

Copy link
Copy Markdown
Contributor

Vy N Thai (@incakoala) would you feel comfortable doing such a change? Maybe Tomer Stav (@tomerstav) could also help out, given the work on #107089

Fundamentally I think it requires some changes to the IQuickPick API to add text that is searchable when filtering but does not appear in the UI. Maybe Christof Marti (@chrmarti) as widget owner could comment if something like this already exists.

I'm happy to help out. Vy N Thai (@incakoala) please take charge and let me know where you need help

@bpasero

Benjamin Pasero (bpasero) commented Oct 6, 2020 •

Copy link
Copy Markdown
Contributor

Tomer Stav (@tomerstav) Vy N Thai (@incakoala) some code pointers to help:

  • I suggest to add a new meta field to IQuickPickItem
  • this new field should appear as saneMeta in the ListElement
  • we do not display this to the user but add it to the filter logic here
  • we adopt meta property for the language picker (all extension ids separated by space)

@tomerstav

Copy link
Copy Markdown
Contributor

Vy N Thai (@incakoala) Please let me know if you are still interested or if I should work on this myself and create a new pr?

@incakoala

Copy link
Copy Markdown
Author

Tomer Stav (@tomerstav) Yes I'd be interested in working on this -- sorry for the late response! Will let you know when I need help. Benjamin Pasero (@bpasero) thanks for the suggestions and pointers!

@bpasero

Copy link
Copy Markdown
Contributor

Closing as stale, please open a new PR if you are still planning to work on this.

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

4 participants