Split SymbolKind::Function into Function and Method

This commit is contained in:
Lukas Wirth 2024-03-17 11:07:22 +01:00
parent c8f6655327
commit 23fff55f0c
20 changed files with 150 additions and 124 deletions

View file

@ -68,11 +68,11 @@ fn render(
};
let has_self_param = func.self_param(db).is_some();
let mut item = CompletionItem::new(
if has_self_param {
CompletionItemKind::Method
CompletionItemKind::SymbolKind(if has_self_param {
SymbolKind::Method
} else {
CompletionItemKind::SymbolKind(SymbolKind::Function)
},
SymbolKind::Function
}),
ctx.source_range(),
call.clone(),
);