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

Code Compeltion fuzzy match #834

Open
CppCXY opened this issue Feb 11, 2025 · 2 comments
Open

Code Compeltion fuzzy match #834

CppCXY opened this issue Feb 11, 2025 · 2 comments

Comments

@CppCXY
Copy link
Contributor

CppCXY commented Feb 11, 2025

I found that code completion uses prefix matching rather than fuzzy matching. It would be nice if it could support fuzzy matching like Visual Studio Code does.

Image

@angelozerr
Copy link
Contributor

I found that code completion uses prefix matching rather than fuzzy matching. It would be nice if it could support fuzzy matching like Visual Studio Code does.

Image

I suggest that you see lsp completion features api if you manage that. If no we need to improve the api

@SCWells72
Copy link
Contributor

SCWells72 commented Feb 24, 2025

It looks like at least some language servers do return fuzzy matches to the LSP client. The issue is that the implementation of PrefixMatcher used by the IDE, CamelHumpMatcher, filters to those that match based on prefix or camel-hump prefix. It wouldn't be difficult to have them use some kind of fuzzy prefix matcher, but it would diverge from the standard JetBrains IDE code completion prefix filtering behavior. Not weighing in on whether that's a good thing or a bad thing, but if it were offered, I think it should be configurable and disabled by default so that the default behavior matches what a JetBrains IDE user expects. My $0.02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants