mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Move docs to Function
This commit is contained in:
parent
b77d780f0e
commit
b540451483
3 changed files with 18 additions and 13 deletions
|
@ -259,9 +259,8 @@ 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());
|
||||
if let Some(docs) = function.docs(ctx.db) {
|
||||
self.documentation = Some(docs);
|
||||
}
|
||||
|
||||
self.kind = Some(CompletionItemKind::Function);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue