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

Sort settings by ToC when ToC shown #193242

Merged
merged 2 commits into from
Sep 25, 2023
Merged

Sort settings by ToC when ToC shown #193242

merged 2 commits into from
Sep 25, 2023

Conversation

rzhao271
Copy link
Contributor

Ref #187959

This PR changes the Settings editor search behaviour as follows:

  • If workbench.settings.settingsSearchTocBehavior is set to filter, then the ToC (table of contents) is shown during search, and we sort the settings by their order in the ToC
  • If workbench.settings.settingsSearchTocBehavior is set to hide, then the ToC is not shown during search, and we sort the settings the old way, disregarding the settings order, but placing exact keyword matches up front

@rzhao271 rzhao271 self-assigned this Sep 15, 2023
@rzhao271 rzhao271 added this to the September 2023 milestone Sep 15, 2023
@rzhao271
Copy link
Contributor Author

I plan on merging #193635 first, which will reduce the number of less relevant search results.
After that, I'll test out this PR locally again and see whether I like what shows up.

@rzhao271
Copy link
Contributor Author

Hm, I don't like the results
For example, when I search default language, file associations shows up first, and a bunch of language settings show up before the emmet include languages setting.

@rzhao271
Copy link
Contributor Author

This PR is ready to merge after #193635 is merged

@rzhao271 rzhao271 merged commit 2db3132 into main Sep 25, 2023
6 checks passed
@rzhao271 rzhao271 deleted the rzhao271/filter-settings branch September 25, 2023 17:20
lins0621 pushed a commit to lins0621/vscode that referenced this pull request Oct 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 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.

None yet

2 participants