Unnamed repository; edit this file 'description' to name the repository.
Merge #11720
11720: fix: Mark chaining hints as types r=SomeoneToIgnore a=lnicola CC https://github.com/rust-analyzer/rust-analyzer/pull/11445#discussion_r826863321 Co-authored-by: LaurenČ›iu Nicola <[email protected]>
bors[bot] 2022-03-16
parent fb9e66d · parent 620411d · commit 9f2b4ef
-rw-r--r--crates/rust-analyzer/src/to_proto.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs
index 2faef70072..6a1c2f56ca 100644
--- a/crates/rust-analyzer/src/to_proto.rs
+++ b/crates/rust-analyzer/src/to_proto.rs
@@ -432,8 +432,7 @@ pub(crate) fn inlay_hint(
},
kind: match inlay_hint.kind {
InlayKind::ParameterHint => Some(lsp_ext::InlayHintKind::PARAMETER),
- InlayKind::TypeHint => Some(lsp_ext::InlayHintKind::TYPE),
- InlayKind::ChainingHint => None,
+ InlayKind::TypeHint | InlayKind::ChainingHint => Some(lsp_ext::InlayHintKind::TYPE),
},
tooltip: None,
padding_left: Some(match inlay_hint.kind {