Skip to content

CompletionItem's deprecated property should be preserved across requests - #347

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
rcjsuen:deprecated-vsc
May 9, 2018
Merged

Dirk Bäumer (dbaeumer) merged 1 commit into
microsoft:masterfrom
rcjsuen:deprecated-vsc

Conversation

@rcjsuen

Copy link
Copy Markdown
Contributor

Although VS Code does not currently support appending a visual indicator that a completion item is "deprecated", the deprecated property itself of a CompletionItem should still be preserved across requests. This will allow language servers to read and write to that field across a textDocument/completion request and a completionItem/resolve request.

I used if (x.val === true || x.val === false) { y.val = x.val; } to ensure that only boolean values would be converted as I didn't want to encourage an "anything goes" attitude.

Although VS Code does not currently support appending a deprecation
affordance to completion items, the language server bridge code
should still preserve the deprecated property across requests. This
will allow language servers to read and write to that field across a
textDocument/completion request and a completionItem/resolve request.

Signed-off-by: Remy Suen <[email protected]>
@dbaeumer

Copy link
Copy Markdown
Member

As always nice work.

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit f738331 into microsoft:master May 9, 2018
@rcjsuen
Remy Suen (rcjsuen) deleted the deprecated-vsc branch May 9, 2018 12:55
@rcjsuen

Copy link
Copy Markdown
Contributor Author

Thanks for merging it in so quickly, Dirk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants