aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-07-26 12:10:29 +0100
committerKirill Bulatov <[email protected]>2019-07-26 16:06:31 +0100
commit5169a9d498c82ffd0a24a4cc640eb8232a3f7e21 (patch)
treeefa51b228f5f8785bc46b2620ad766deeea7d877 /crates/ra_lsp_server/src/main_loop/handlers.rs
parent4647e89defd367a92d00d3bbb11c2463408bb3ad (diff)
Improve inlay hinting for types
Add hints for types in for loop expressions. Resolve types for every tuple parameter. Refactor the code.
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs3
1 files changed, 3 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 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(
897 kind: match api_type.kind { 897 kind: match api_type.kind {
898 ra_ide_api::InlayKind::LetBindingType => InlayKind::LetBindingType, 898 ra_ide_api::InlayKind::LetBindingType => InlayKind::LetBindingType,
899 ra_ide_api::InlayKind::ClosureParameterType => InlayKind::ClosureParameterType, 899 ra_ide_api::InlayKind::ClosureParameterType => InlayKind::ClosureParameterType,
900 ra_ide_api::InlayKind::ForExpressionBindingType => {
901 InlayKind::ForExpressionBindingType
902 }
900 }, 903 },
901 }) 904 })
902 .collect()) 905 .collect())