-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Sort @deprecated completions lower than others #43816
Sort @deprecated completions lower than others #43816
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, where can I write tests for the session?
I've tried verify.completions
but it's not testing this method in Session
.
There's "something" in VSCode that's still re-ordering the suggestions. Debugging https://github.com/microsoft/vscode/tree/main/extensions/typescript-language-features shows that the server response looks correct: But the suggestions shown to the UI differs, Test Code:
Trace when trigger completions in VSCode
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the issue is committed (its still suggestion and not scheduled for milestone nor in backlog), this isn't right way to fix but instead to update sortText property with new enum value.
There seems to be another PR #43880 doing this same thing |
Ah, do we create overriding PRs just like that 😬 |
Fixes #43796