aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-18 14:16:11 +0100
committerGitHub <[email protected]>2020-07-18 14:16:11 +0100
commitfd6717799c03c9171bb7ec0f50bce98d1dfb44bd (patch)
tree86575de96083d6fbe730faa9030e3c92c14d2934 /crates
parent059c0b8f7aa3537199594070d7f7d2725aaa752f (diff)
parentb38f6b3c41ad8b86e54d117b389d7c937d29d51c (diff)
Merge #5431
5431: Don't show docs in concise signature help r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-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) };