5431: Don't show docs in concise signature help r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-07-18 13:16:11 +00:00 committed by GitHub
commit fd6717799c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -271,12 +271,16 @@ pub(crate) fn signature_help(
}
};
let documentation = call_info.doc.map(|doc| {
lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
kind: lsp_types::MarkupKind::Markdown,
value: doc,
let documentation = if concise {
None
} else {
call_info.doc.map(|doc| {
lsp_types::Documentation::MarkupContent(lsp_types::MarkupContent {
kind: lsp_types::MarkupKind::Markdown,
value: doc,
})
})
});
};
let signature =
lsp_types::SignatureInformation { label, documentation, parameters: Some(parameters) };