From b8f95f42e1777d3858c74b45ba8f7a5b5a3cdca8 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sun, 28 Jul 2019 00:50:26 +0300 Subject: Support destructuring patterns --- crates/ra_lsp_server/src/main_loop/handlers.rs | 3 +++ crates/ra_lsp_server/src/req.rs | 3 +++ 2 files changed, 6 insertions(+) (limited to 'crates/ra_lsp_server') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 0b4493ce2..9006aa316 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -900,6 +900,9 @@ pub fn handle_inlay_hints( ra_ide_api::InlayKind::ForExpressionBindingType => { InlayKind::ForExpressionBindingType } + ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType, + ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType, + ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType, }, }) .collect()) diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 96f6b1bc5..570438643 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -216,6 +216,9 @@ pub enum InlayKind { LetBindingType, ClosureParameterType, ForExpressionBindingType, + IfExpressionType, + WhileLetExpressionType, + MatchArmType, } #[derive(Debug, Deserialize, Serialize)] -- cgit v1.2.3