diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-21 12:10:01 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-21 12:10:01 +0000 |
commit | 7843ae6ddbacfeab967f3a225a4b4c132bb45855 (patch) | |
tree | 3ab55341559252f84c8d30cd7c0fd022e279a3c2 | |
parent | 9bb9fbab3ab603150990ef8f2df12bddc7104058 (diff) | |
parent | 299ce609952dfaa6bef86e967c5632e8e42b8fca (diff) |
Merge #6974
6974: Stop setting CompletionItem::deprecated r=matklad a=lnicola
Closes #2042
We're now using the `CompletionItem::tags` field to mark `CompletionItem`s as deprecated, and `CompletionItem::deprecated` is gone from LSP.
Co-authored-by: Laurențiu Nicola <[email protected]>
-rw-r--r-- | crates/rust-analyzer/src/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs index 66f8bee99..74dd766c6 100644 --- a/crates/rust-analyzer/src/handlers.rs +++ b/crates/rust-analyzer/src/handlers.rs | |||
@@ -281,7 +281,7 @@ pub(crate) fn handle_document_symbol( | |||
281 | detail: symbol.detail, | 281 | detail: symbol.detail, |
282 | kind: to_proto::symbol_kind(symbol.kind), | 282 | kind: to_proto::symbol_kind(symbol.kind), |
283 | tags: Some(tags), | 283 | tags: Some(tags), |
284 | deprecated: Some(symbol.deprecated), | 284 | deprecated: None, |
285 | range: to_proto::range(&line_index, symbol.node_range), | 285 | range: to_proto::range(&line_index, symbol.node_range), |
286 | selection_range: to_proto::range(&line_index, symbol.navigation_range), | 286 | selection_range: to_proto::range(&line_index, symbol.navigation_range), |
287 | children: None, | 287 | children: None, |