You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noted one thing with completion:
inside function I enter a few symbols for local variable or class member, but usually I have function from std/keywords instead of local stuff.
Same thing happens I I have local variable and type with similar names:
I would expect, that when I enter something, that matches with results by case(eg log, not Log) I will have local variable on top.
But I enter something with different cases- then I would expect best match.
At demo/src/main.cpp:18, after typing logg, the completion items I get are:
logg
LONG_LONG_MAX
LONG_LONG_MIN
It looks like you may have some company plugins that do its own sorting?
If my understanding is correct, you prefer the variable logger to other std functions/macros. The fuzzy string matching already assigns some weight to the completion items, we probably need a generic mechanism that assigns different weights to SymbolKind and combine the two signals, but I'm not very clear how to do that.
Hi @MaskRay ,
I noted one thing with completion:
inside function I enter a few symbols for local variable or class member, but usually I have function from std/keywords instead of local stuff.
Same thing happens I I have local variable and type with similar names:
I would expect, that when I enter something, that matches with results by case(eg log, not Log) I will have local variable on top.
But I enter something with different cases- then I would expect best match.
Seems like with types it works as expected:
Thank you in advance!
source code: https://bitbucket.org/myrgy/rhino/src/develop/
ccls version: 3e04997
The text was updated successfully, but these errors were encountered: