diff options
author | Kirill Bulatov <[email protected]> | 2019-07-27 22:50:26 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-07-28 22:33:10 +0100 |
commit | b8f95f42e1777d3858c74b45ba8f7a5b5a3cdca8 (patch) | |
tree | eea9b89f4b455ef8b29d4588f849d9eba09329df /crates/ra_lsp_server/src | |
parent | de278d164906d6d29974790c5a4db28303692484 (diff) |
Support destructuring patterns
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 3 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 3 |
2 files changed, 6 insertions, 0 deletions
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( | |||
900 | ra_ide_api::InlayKind::ForExpressionBindingType => { | 900 | ra_ide_api::InlayKind::ForExpressionBindingType => { |
901 | InlayKind::ForExpressionBindingType | 901 | InlayKind::ForExpressionBindingType |
902 | } | 902 | } |
903 | ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType, | ||
904 | ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType, | ||
905 | ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType, | ||
903 | }, | 906 | }, |
904 | }) | 907 | }) |
905 | .collect()) | 908 | .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 { | |||
216 | LetBindingType, | 216 | LetBindingType, |
217 | ClosureParameterType, | 217 | ClosureParameterType, |
218 | ForExpressionBindingType, | 218 | ForExpressionBindingType, |
219 | IfExpressionType, | ||
220 | WhileLetExpressionType, | ||
221 | MatchArmType, | ||
219 | } | 222 | } |
220 | 223 | ||
221 | #[derive(Debug, Deserialize, Serialize)] | 224 | #[derive(Debug, Deserialize, Serialize)] |