diff options
author | Kirill Bulatov <[email protected]> | 2019-08-04 22:28:36 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2019-08-04 22:28:36 +0100 |
commit | 15411d4474ceaacf10787f52c916ade3dea0eb49 (patch) | |
tree | d2f242b981d485b0531a53ffbe78532010b34708 /crates/ra_lsp_server/src/main_loop | |
parent | 2c02aebeb560b6c388a8b94723042b1e25eb49e9 (diff) |
Use proper inlay kinds
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 9 |
1 files changed, 1 insertions, 8 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()) |