Skip to content

Conversation

@stepankuzmin
Copy link

@stepankuzmin stepankuzmin commented Dec 1, 2025

Adds a boost field to StringMatchCandidate that multiplies fuzzy match scores. Command palette uses this to rank frequently-used commands higher in search results.

Uses square root scaling (1 use → 2.5x, 10 uses → 5.74x, 50 uses → 11.6x) so frequent commands get advantage without completely overriding fuzzy match quality. Zero-score matches stay filtered out regardless of boost.

Includes tests verifying boost works with empty queries, affects ranking, and doesn't promote non-matches.

Alternative approach to #30386

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 1, 2025
@zed-industries-bot
Copy link

zed-industries-bot commented Dec 1, 2025

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against 0b52b1e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants