Feature Request: Use LSP preselect
field of CompletionItem
to preselect most likely item with the same prefix
#13227
Labels
preselect
field of CompletionItem
to preselect most likely item with the same prefix
#13227
With typing in the body of a function (not member completion), when I type
e
, the most likely thing I want to type iselse
. What I'm offered is:ecvt is a function in stdlib.h. The others are macros from dlgs.h in Windows SDK.
It seems much more likely that what I want to type is a keyword, and not a specific global function name or macro.
It looks like LSP provides a way to present the most likely candidate instead of always navigating to the alphabetically first option with the same prefix.
The right way to decide a best candidate is debatable. It seems like it'd at least be possible to assume keywords (or certain keywords, such as
else
andif
) are more likely than function or macro names, etc., in the body of a function. Perhapselse
would be preselected only if the previous lexical token is a close curly brace.The text was updated successfully, but these errors were encountered: