mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
Don't show docs in concise signature help
This commit is contained in:
parent
059c0b8f7a
commit
b38f6b3c41
1 changed files with 9 additions and 5 deletions
|
@ -271,12 +271,16 @@ pub(crate) fn signature_help(
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let documentation = call_info.doc.map(|doc| {
|
let documentation = if concise {
|
||||||
lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
|
None
|
||||||
kind: lsp_types::MarkupKind::Markdown,
|
} else {
|
||||||
value: doc,
|
call_info.doc.map(|doc| {
|
||||||
|
lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
|
||||||
|
kind: lsp_types::MarkupKind::Markdown,
|
||||||
|
value: doc,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
});
|
};
|
||||||
|
|
||||||
let signature =
|
let signature =
|
||||||
lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };
|
lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };
|
||||||
|
|
Loading…
Reference in a new issue