aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-08-04 22:28:36 +0100
committerKirill Bulatov <[email protected]>2019-08-04 22:28:36 +0100
commit15411d4474ceaacf10787f52c916ade3dea0eb49 (patch)
treed2f242b981d485b0531a53ffbe78532010b34708 /crates/ra_lsp_server/src
parent2c02aebeb560b6c388a8b94723042b1e25eb49e9 (diff)
Use proper inlay kinds
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs9
-rw-r--r--crates/ra_lsp_server/src/req.rs7
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)]
215pub enum InlayKind { 215pub 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)]