diff options
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 9 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/req.rs | 7 |
2 files changed, 2 insertions, 14 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index c2a44ffa0..a6dc1f964 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs | |||
@@ -894,14 +894,7 @@ pub fn handle_inlay_hints( | |||
894 | label: api_type.label.to_string(), | 894 | label: api_type.label.to_string(), |
895 | range: api_type.range.conv_with(&line_index), | 895 | range: api_type.range.conv_with(&line_index), |
896 | kind: match api_type.kind { | 896 | kind: match api_type.kind { |
897 | ra_ide_api::InlayKind::LetBindingType => InlayKind::LetBindingType, | 897 | ra_ide_api::InlayKind::TypeHint => InlayKind::TypeHint, |
898 | ra_ide_api::InlayKind::ClosureParameterType => InlayKind::ClosureParameterType, | ||
899 | ra_ide_api::InlayKind::ForExpressionBindingType => { | ||
900 | InlayKind::ForExpressionBindingType | ||
901 | } | ||
902 | ra_ide_api::InlayKind::IfExpressionType => InlayKind::IfExpressionType, | ||
903 | ra_ide_api::InlayKind::WhileLetExpressionType => InlayKind::WhileLetExpressionType, | ||
904 | ra_ide_api::InlayKind::MatchArmType => InlayKind::MatchArmType, | ||
905 | }, | 898 | }, |
906 | }) | 899 | }) |
907 | .collect()) | 900 | .collect()) |
diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 570438643..6b986bcc9 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs | |||
@@ -213,12 +213,7 @@ pub struct InlayHintsParams { | |||
213 | 213 | ||
214 | #[derive(Debug, PartialEq, Eq, Deserialize, Serialize)] | 214 | #[derive(Debug, PartialEq, Eq, Deserialize, Serialize)] |
215 | pub enum InlayKind { | 215 | pub enum InlayKind { |
216 | LetBindingType, | 216 | TypeHint, |
217 | ClosureParameterType, | ||
218 | ForExpressionBindingType, | ||
219 | IfExpressionType, | ||
220 | WhileLetExpressionType, | ||
221 | MatchArmType, | ||
222 | } | 217 | } |
223 | 218 | ||
224 | #[derive(Debug, Deserialize, Serialize)] | 219 | #[derive(Debug, Deserialize, Serialize)] |