Skip to content

Proposal: Revert settings search in the Settings editor to order results by keyword matches first #197773

@rzhao271

Description

@rzhao271

This proposal affects Settings editor (Settings UI) users and extension authors.

The search in the Settings editor currently shows results sorted by the table of contents so that commonly used settings can show up at the top, and so search results can be grouped by the entries in the table of contents. The change to sort the settings by table of contents was made as part of #187959 and #190666.

However, the Settings editor performs two searches per query: the first search finds settings based on keyword matching, and the second search attempts to find relevant settings using similarity search algorithms. As a result, the second search is prone to finding less relevant settings, especially when the user had a specific keyword in mind. Because the Settings editor currently orders settings by the table of contents, the less relevant results from the second search sometimes end up showing above the keyword match results because they appear first in the table of contents.

As an example, if I search "title bar style" in the Settings editor, window.titleBarStyle actually shows up fifth due to table of contents sorting:
Settings editor with query "title bar style" and "Window: Title Bar Style" showing up fifth

This issue proposes reverting the settings search so that the keyword matches always appear at the top of the search results again. As part of this proposal, #187959 and #190666 would regress and become out of scope. In other words, ordering the search results so that keyword matches always appear first would break grouping the search results by the table of contents entries, but would make it so that users hopefully don't have to scroll down as much to find what they were looking for. Implementing this proposal would also break sorting extension search results by the settings order numbers given by the extension author in their extension's package.json file.

I noticed that the issue of having to scroll down to find a keyword match is made worse when the Settings editor is "small", such as when I restore/shrink the VS Code window.
Screenreader users might also have to tab down more search results to get to the one they want.

Feel free to upvote the proposal if you'd like to see it implemented, or downvote it if you'd like the settings search results ordering to remain the way it currently is. You're also welcome to comment on this issue with alternative suggestions for how the search results should be shown within the Settings editor.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notessettings-editorVS Code settings editor issuesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions