From 5169a9d498c82ffd0a24a4cc640eb8232a3f7e21 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 26 Jul 2019 14:10:29 +0300 Subject: Improve inlay hinting for types Add hints for types in for loop expressions. Resolve types for every tuple parameter. Refactor the code. --- crates/ra_lsp_server/src/main_loop/handlers.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 14619ede2..0b4493ce2 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -897,6 +897,9 @@ pub fn handle_inlay_hints( kind: match api_type.kind { ra_ide_api::InlayKind::LetBindingType => InlayKind::LetBindingType, ra_ide_api::InlayKind::ClosureParameterType => InlayKind::ClosureParameterType, + ra_ide_api::InlayKind::ForExpressionBindingType => { + InlayKind::ForExpressionBindingType + } }, }) .collect()) -- cgit v1.2.3