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

Improve Fuzzy Search for Workspace Symbol requests #2772

Open
andyw8 opened this issue Oct 24, 2024 · 0 comments
Open

Improve Fuzzy Search for Workspace Symbol requests #2772

andyw8 opened this issue Oct 24, 2024 · 0 comments

Comments

@andyw8
Copy link
Contributor

andyw8 commented Oct 24, 2024

Note

This issue is aimed at those attending the RubyConf 2024 Hack Day

For Workspace requests, we rely on calculating the Jaro-Winkler distance between the search term, and the symbols in the workssace, and use that to order the results.

(In VS Code, workspace search is triggered by Cmd/Ctrl T)

However, this does not work particularly well in some cases, for example:

  • In the ruby-lsp repo, if you search for enh, it does not return RubyIndexer::Enhancement because it is below the threshold. You need to type something like rubenhac to match the leading characters.

We are hoping to replace this with a better approach, but still providing fast performance.

@andyw8 andyw8 changed the title Improve Fuzzy Search for Document Symbol requests Improve Fuzzy Search for Workspace Symbol requests Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant