aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorMartin Asquino <[email protected]>2019-11-02 02:52:59 +0000
committerMartin Asquino <[email protected]>2019-11-02 20:37:47 +0000
commitdc3848a6a3e659004ba4f2160503be28ea0f9051 (patch)
treed146b883f6352cbc647d8ad484377242582a7c39 /crates/ra_lsp_server
parenteb8f76a86fe88fcad370577b344f397dd6118cfd (diff)
Set `deprecated` field on `CompletionItem`s
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..a4667d284 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: 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() {