We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059c0b8 commit b38f6b3Copy full SHA for b38f6b3
crates/rust-analyzer/src/to_proto.rs
@@ -271,12 +271,16 @@ pub(crate) fn signature_help(
271
}
272
};
273
274
- let documentation = call_info.doc.map(|doc| {
275
- lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
276
- kind: lsp_types::MarkupKind::Markdown,
277
- value: doc,
+ let documentation = if concise {
+ None
+ } else {
+ call_info.doc.map(|doc| {
278
+ lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
279
+ kind: lsp_types::MarkupKind::Markdown,
280
+ value: doc,
281
+ })
282
})
- });
283
+ };
284
285
let signature =
286
lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };
0 commit comments