PrettyPrompt icon indicating copy to clipboard operation
PrettyPrompt copied to clipboard

CompletionItem.GetCompletionItemPriority improvement

Open kindermannhubert opened this issue 3 years ago • 1 comments

Could be further improved by using Levenshtein distance instead of length comparison (=Math.Abs(...)expressions).

kindermannhubert avatar Feb 12 '22 20:02 kindermannhubert

Implementation should be case sensitive and change of casing should have some non-zero penalty but lower than changing to an entirely different letter.

That would solve an issue when the completion list contains e.g. enum and Enum and the user writes Enum but enum is selected. Current matching is case insensitive.

kindermannhubert avatar Mar 13 '22 19:03 kindermannhubert