LSP 3.15 supports the deprecated tag on completions
This commit is contained in:
parent
9c9f4635b4
commit
a234b5a3ca
@ -130,6 +130,11 @@ fn conv_with(self, ctx: (&LineIndex, LineEndings)) -> ::lsp_types::CompletionIte
|
||||
deprecated: Some(self.deprecated()),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
if self.deprecated() {
|
||||
res.tags = Some(vec![lsp_types::CompletionItemTag::Deprecated])
|
||||
}
|
||||
|
||||
res.insert_text_format = Some(match self.insert_text_format() {
|
||||
InsertTextFormat::Snippet => lsp_types::InsertTextFormat::Snippet,
|
||||
InsertTextFormat::PlainText => lsp_types::InsertTextFormat::PlainText,
|
||||
|
Loading…
Reference in New Issue
Block a user