Figure out how to encode sortText
(because it means TypeScript deprecated completions show up first)
#45288
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Fix Available
A PR has been opened for this issue
Milestone
Try requesting completions in a blank file.
I think this is because our
SortText
uses numeric text, but the text is sorted as a string. Why would that matter? Well, global deprecated completions have a numeric value of13
, which is less than almost any other completion entry type.Editors just do a basic string comparison of
sortText
s, so we should figure out how to fix this.The text was updated successfully, but these errors were encountered: