Skip to content

Commit b38f6b3

Browse files
committed
Don't show docs in concise signature help
1 parent 059c0b8 commit b38f6b3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

crates/rust-analyzer/src/to_proto.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,16 @@ pub(crate) fn signature_help(
271271
}
272272
};
273273

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,
274+
let documentation = if concise {
275+
None
276+
} else {
277+
call_info.doc.map(|doc| {
278+
lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
279+
kind: lsp_types::MarkupKind::Markdown,
280+
value: doc,
281+
})
278282
})
279-
});
283+
};
280284

281285
let signature =
282286
lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };

0 commit comments

Comments
 (0)