mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
move function rendering to presentation
This commit is contained in:
parent
d0a261468e
commit
b04cadc02c
5 changed files with 49 additions and 24 deletions
|
@ -64,14 +64,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) {
|
|||
hir::ImplItem::Method(func) => {
|
||||
let sig = func.signature(ctx.db);
|
||||
if !sig.has_self_param() {
|
||||
CompletionItem::new(
|
||||
CompletionKind::Reference,
|
||||
ctx.source_range(),
|
||||
sig.name().to_string(),
|
||||
)
|
||||
.from_function(ctx, func)
|
||||
.kind(CompletionItemKind::Method)
|
||||
.add_to(acc);
|
||||
acc.add_function(CompletionKind::Reference, ctx, func);
|
||||
}
|
||||
None::<()>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue