aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-11-03 14:41:30 +0000
committerGitHub <[email protected]>2019-11-03 14:41:30 +0000
commitf9f1effd011b906903891c09f1cb6b2a42f73e95 (patch)
tree9f1587de5feffce6f480947fd525b993de6843b2 /crates/ra_lsp_server
parent5d96ade59484927e7e590b64e2846ab409bbe63b (diff)
parentccf8817d181ab9430a00c38d96b481a07af701bb (diff)
Merge #2160
2160: Set `deprecated` field on `CompletionItem`s r=matklad a=martskins This PR aims to address #2042 by setting the deprecated field for completion items. The setting the tags field for LSP 3.15 part still needs fixing, but that one is blocked due to lsp-types not being up to date with 3.15 yet. Co-authored-by: Martin Asquino <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/conv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs
index ee503633d..94ed619fa 100644
--- a/crates/ra_lsp_server/src/conv.rs
+++ b/crates/ra_lsp_server/src/conv.rs
@@ -127,6 +127,7 @@ impl ConvWith<(&LineIndex, LineEndings)> for CompletionItem {
127 text_edit: Some(text_edit), 127 text_edit: Some(text_edit),
128 additional_text_edits: Some(additional_text_edits), 128 additional_text_edits: Some(additional_text_edits),
129 documentation: self.documentation().map(|it| it.conv()), 129 documentation: self.documentation().map(|it| it.conv()),
130 deprecated: Some(self.deprecated()),
130 ..Default::default() 131 ..Default::default()
131 }; 132 };
132 res.insert_text_format = Some(match self.insert_text_format() { 133 res.insert_text_format = Some(match self.insert_text_format() {