Skip to content

Adds an option to view extensions in select language mode - #107089

Closed
Tomer Stav (tomerstav) wants to merge 3 commits into
microsoft:masterfrom
tomerstav:feature/change-language-mode-dropdown-should-allow-filtering-by-file-extension
Closed

Tomer Stav (tomerstav) wants to merge 3 commits into
microsoft:masterfrom
tomerstav:feature/change-language-mode-dropdown-should-allow-filtering-by-file-extension

Conversation

@tomerstav

@tomerstav Tomer Stav (tomerstav) commented Sep 20, 2020 •

Copy link
Copy Markdown
Contributor

A user can search against extension names in select language mode by selecting Show Extensions. If a user wants to undo the action they can re-click the language type at the bottom right of the window.
example

Screen Shot 2020-09-19 at 8 59 37 PM

Screen Shot 2020-09-19 at 8 59 45 PM

This PR fixes #106886

@ghost

Deleted user (ghost) commented Sep 20, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@bpasero

Copy link
Copy Markdown
Contributor

I do not fully understand how this PR fixes #106886

@bpasero Benjamin Pasero (bpasero) added this to the Backlog milestone Sep 21, 2020
@bpasero
Benjamin Pasero (bpasero) marked this pull request as draft September 21, 2020 13:08
@tomerstav

Tomer Stav (tomerstav) commented Sep 21, 2020 •

Copy link
Copy Markdown
Contributor Author

I do not fully understand how this PR fixes #106886

Once you view extensions in the description of the dropdown enums you can search against these file types. Such as jsx or ts. If you pull down my branch and run it you can see this by the following steps.

  1. Click the language on the bottom right.
  2. Search value 'jsx', you will see that nothing is returned.
  3. Click show extensions option.
  4. Search again with value 'jsx', you will see results based on the file extension in the enum description.

Thus, you can filter values by extension.

@bpasero

Copy link
Copy Markdown
Contributor

I understand, but why can we not simply allow to search by file extension? Why the extra action to enable that?

@tomerstav

Tomer Stav (tomerstav) commented Sep 22, 2020 •

Copy link
Copy Markdown
Contributor Author

I understand, but why can we not simply allow to search by file extension? Why the extra action to enable that?

I assume most users do not search by extension name and that those that do wouldn't want to see all the extension names in the description.

If we allow all users to search for extensions without seeing the description then that would be problematic as users who are searching by language name would see results from extension names thinking they are in error and not relevant to their search.

Please let me know how you would like to proceed. I can easily display all file names in the description without an action, allowing a search by file extension for all users.

@bpasero

Benjamin Pasero (bpasero) commented Sep 23, 2020 •

Copy link
Copy Markdown
Contributor

To clarify: my suggestion was to leave the picker as it is today but include the file extension to show results when you search. You think that is confusing? Why?

@tomerstav

Copy link
Copy Markdown
Contributor Author

To clarify: my suggestion was to leave the picker as it is today but include the file extension to show results when you search. You think that is confusing? Why?

With extension names in the descriptions? I'm okay with that but I think having the extra action makes it cleaner.

Without extension names in the descriptions? I think it wouldn't be clear why you are getting the results you are getting. Right now the users input is being highlighted in the results to explain to the user why they are getting what they got. We wouldn't be able to highlight any of the results as the file extension would not be part of the description.

@bpasero

Copy link
Copy Markdown
Contributor

Since we now have another PR for this in #107939 I suggest that we keep it to one. I somewhat like the approach there better but think it needs more tweaking as outlined in #107939 (comment)

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

2 participants