From c390e92fdd25ced46c589bfbff94e4b0bc4d9c38 Mon Sep 17 00:00:00 2001 From: imtsuki Date: Wed, 15 Jan 2020 01:02:01 +0800 Subject: Add inlay parameter name hints for function calls Signed-off-by: imtsuki --- crates/ra_lsp_server/src/main_loop/handlers.rs | 1 + crates/ra_lsp_server/src/req.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index a592f0a12..a9a8538b7 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -952,6 +952,7 @@ pub fn handle_inlay_hints( range: api_type.range.conv_with(&line_index), kind: match api_type.kind { ra_ide::InlayKind::TypeHint => InlayKind::TypeHint, + ra_ide::InlayKind::ParameterHint => InlayKind::ParameterHint, }, }) .collect()) diff --git a/crates/ra_lsp_server/src/req.rs b/crates/ra_lsp_server/src/req.rs index 8098ff31d..dc327f53d 100644 --- a/crates/ra_lsp_server/src/req.rs +++ b/crates/ra_lsp_server/src/req.rs @@ -197,6 +197,7 @@ pub struct InlayHintsParams { #[derive(Debug, PartialEq, Eq, Deserialize, Serialize)] pub enum InlayKind { TypeHint, + ParameterHint, } #[derive(Debug, Deserialize, Serialize)] -- cgit v1.2.3