We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e103b commit 7bbd852Copy full SHA for 7bbd852
crates/ide-completion/src/item.rs
@@ -312,7 +312,7 @@ impl CompletionRelevance {
312
// Prefer functions with no arguments, then functions with self arguments
313
if score > 0 {
314
score += if !asf.has_args { 2 } else { 0 };
315
- score -= if asf.has_self_arg { 1 } else { 0 };
+ score -= if asf.has_self_arg { score - 1 } else { 0 };
316
}
317
318
score
0 commit comments