aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) };