-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Stop setting CompletionItem::deprecated #6974
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
Conversation
|
Hm, I don't quite understand why :) Reading the linked issue doesn't help. Could you ammend the commit message perhpars to say why, not what? ;) |
|
Updated (only the description, since bors will copy it into the merge commit anyway). |
|
bors r+ though, I personally still prefer to put info in first-order commit messages -- would work better with blame that way I think |
|
This is incorrect. The field isn't gone but deprecated in the protocol. It still needs to be set for older clients. |
|
But the field still shows up in the response, I assume And we might have other compatibility issues anyway (like in #6779). |
|
|
Both the field (for older) and the tag (newer) should be set. The tag was introduced to the protocol to stop stuffing new info into fields. There are a number of LSP requests that have started to follow this model. It's deprecated in the sense that newer clients should be looking at the tag set and not the field to determine deprecation status but they should both be filled out. When a new thing is added in the future it will be added to the tag list and not made a field. There shouldn't be any compatibility problems with this approach. |
6977: Revert "Stop setting CompletionItem::deprecated" r=lnicola a=lnicola We should keep setting it, according to #6974 (comment). Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Closes #2042
We're now using the
CompletionItem::tagsfield to markCompletionItems as deprecated, andCompletionItem::deprecatedis gone from LSP.