aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-18 14:14:44 +0100
committerAleksey Kladov <[email protected]>2020-07-18 14:14:44 +0100
commitb38f6b3c41ad8b86e54d117b389d7c937d29d51c (patch)
tree86575de96083d6fbe730faa9030e3c92c14d2934
parent059c0b8f7aa3537199594070d7f7d2725aaa752f (diff)
Don't show docs in concise signature help
-rw-r--r--crates/rust-analyzer/src/to_proto.rs14
1 files 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(
271 } 271 }
272 }; 272 };
273 273
274 let documentation = call_info.doc.map(|doc| { 274 let documentation = if concise {
275 lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent { 275 None
276 kind: lsp_types::MarkupKind::Markdown, 276 } else {
277 value: doc, 277 call_info.doc.map(|doc| {
278 lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
279 kind: lsp_types::MarkupKind::Markdown,
280 value: doc,
281 })
278 }) 282 })
279 }); 283 };
280 284
281 let signature = 285 let signature =
282 lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) }; 286 lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };