Skip to content

fix: add key match score, revert contiguous search#237855

Merged
rzhao271 merged 1 commit intomainfrom
rzhao271/settings-search
Jan 14, 2025
Merged

fix: add key match score, revert contiguous search#237855
rzhao271 merged 1 commit intomainfrom
rzhao271/settings-search

Conversation

@rzhao271
Copy link
Collaborator

Fixes #203838
Fixes #226039

The main issue was that we restricted the key matching algorithm to match contiguous strings only. Reverting the match back to non-contiguous searching matches more cases again. One side effect is there are now many more results with certain queries such as "editor formonpast", but I also added a new field that should prioritize better matches and help move them to the top of all the noise.

CC @jrieken.

@rzhao271 rzhao271 self-assigned this Jan 14, 2025
@rzhao271 rzhao271 added this to the January 2025 milestone Jan 14, 2025
@rzhao271 rzhao271 marked this pull request as ready for review January 14, 2025 00:36
@rzhao271
Copy link
Collaborator Author

rzhao271 commented Jan 14, 2025

TODO:

  • Rebase PR
  • Confirm how many new search results show up for the query "editor formonpast" compared to the latest Insiders. Edit: the query reveals one irrelevant result on the latest Insiders, so the question is pointless. What is important is that "editor formonpast" now finds "editor.formatOnPaste".

@rzhao271 rzhao271 force-pushed the rzhao271/settings-search branch from 050f5bc to 8a00b20 Compare January 14, 2025 16:59
@rzhao271 rzhao271 enabled auto-merge (squash) January 14, 2025 17:39
@rzhao271 rzhao271 merged commit 2174db3 into main Jan 14, 2025
7 checks passed
@rzhao271 rzhao271 deleted the rzhao271/settings-search branch January 14, 2025 18:06
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 28, 2025
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.

Setting UI doesn't find setting Settings editor sometimes filters out settings it should not

2 participants