Skip to content

"OR" ("any") logic in settings search is surprising and unhelpful #241043

@joliss

Description

@joliss

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.98.0-insider

Current Behavior

The search logic in settings includes results that match any of the search terms, rather than than only results that match all. (I think this may have been changed recently -- perhaps late 2024 or early 2025.)

For example, if I search for markdown validation, the top results simply match the markdown search term, which isn't helpful at all:

Image

I'm personally finding this behavior surprising and unhelpful, and I wonder if this might true for other people as well. When I search, I expect that VS Code tries to match all my search terms. Here's why:

  • I don't want to read through unhelpful results that clutter the search. It's faster if I just get "no results" and remove or change search terms myself.
  • Often I want to check that I've exhausted all the settings there are to see on a certain topic. This requires that VS Code doesn't add extra results.
  • It's surprising because it doesn't match the behavior of the command palette and files picker.

Desired (Previous) Behavior

I figured out, with trial and error, that adding a + sign to each search term gets me the old behavior that uses "AND" to match the terms. Here's what it looks like on VS Code stable:

Image

This is the behavior I would like by default!

Aside: Insiders doesn't do stemming anymore?

When I tried this in Insiders to write up this issue, I noticed that there seems to be a regression(?) where "validation" doesn't match "validate" anymore. I'm not sure if this should be a separate issue, but I thought I'd mention it here:

Image

(I'm not sure why it matches the one "Copy Files: Destination" setting rather than showing zero results, but that's neither here nor there.)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderssettings-editorVS Code settings editor issuessettings-searchSettings editor remote search provider issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions