mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Thread documentation through FnSignature and CompletionItem
This commit is contained in:
parent
5d110c0ee2
commit
b77d780f0e
3 changed files with 15 additions and 1 deletions
|
@ -259,6 +259,11 @@ impl Builder {
|
|||
}
|
||||
self.insert_text_format = InsertTextFormat::Snippet;
|
||||
}
|
||||
let sig = function.signature(ctx.db);
|
||||
if !sig.documentation().is_empty() {
|
||||
self.documentation = Some(sig.documentation().clone());
|
||||
}
|
||||
|
||||
self.kind = Some(CompletionItemKind::Function);
|
||||
self
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue