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 c003460 commit 157fd5dCopy full SHA for 157fd5d
crates/ide-completion/src/item.rs
@@ -306,7 +306,7 @@ impl CompletionRelevance {
306
// Prefer functions with no arguments, then functions with self arguments
307
if score > 0 {
308
score += if !asf.has_args { 2 } else { 0 };
309
- score -= if asf.has_self_arg { 1 } else { 0 };
+ score -= if asf.has_self_arg { score - 1 } else { 0 };
310
}
311
312
score
0 commit comments