Skip to content

Commit 1ea081f

Browse files
authored
Merge pull request #19297 from Natural-selection1/master
Adjust relevance scoring threshold to consistent with existing implem…
2 parents d426cbe + 98b1d5e commit 1ea081f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-completion/src/item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ impl CompletionRelevance {
350350
/// some threshold such that we think it is especially likely
351351
/// to be relevant.
352352
pub fn is_relevant(&self) -> bool {
353-
self.score() > 0
353+
self.score() > (!0 / 2)
354354
}
355355
}
356356

0 commit comments

Comments
 (0)