aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-26 21:16:19 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-07-26 21:16:19 +0100
commitdc6f0b5a4eaf0e9ac096551a9900a32a7efe742a (patch)
treeefa51b228f5f8785bc46b2620ad766deeea7d877 /crates/ra_lsp_server/src/main_loop/handlers.rs
parent4647e89defd367a92d00d3bbb11c2463408bb3ad (diff)
parent5169a9d498c82ffd0a24a4cc640eb8232a3f7e21 (diff)
Merge #1594
1594: Improve inlay hinting for types r=matklad a=SomeoneToIgnore Add hints for types in for loop expressions. Resolve types for every tuple parameter. Refactor the code. ![image](https://user-images.githubusercontent.com/2690773/61957524-2294ae00-afc8-11e9-8bdc-f86f9c84ab7e.png) Co-authored-by: Kirill Bulatov <[email protected]>
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())