From b38f6b3c41ad8b86e54d117b389d7c937d29d51c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 18 Jul 2020 15:14:44 +0200 Subject: Don't show docs in concise signature help --- crates/rust-analyzer/src/to_proto.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs index 687432ddb..fc94f28b9 100644 --- a/crates/rust-analyzer/src/to_proto.rs +++ b/crates/rust-analyzer/src/to_proto.rs @@ -271,12 +271,16 @@ pub(crate) fn signature_help( } }; - let documentation = call_info.doc.map(|doc| { - lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent { - kind: lsp_types::MarkupKind::Markdown, - value: doc, + let documentation = if concise { + None + } else { + call_info.doc.map(|doc| { + lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent { + kind: lsp_types::MarkupKind::Markdown, + value: doc, + }) }) - }); + }; let signature = lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) }; -- cgit v1.2.3