Skip to content

Commit d95d278

Browse files
committedMar 6, 2025
Adjust relevance scoring threshold to consistent with existing implementations
1 parent 2cff701 commit d95d278

File tree

1 file changed

+1
-1
lines changed
  • src/tools/rust-analyzer/crates/ide-completion/src

1 file changed

+1
-1
lines changed
 

‎src/tools/rust-analyzer/crates/ide-completion/src/item.rs

+1-1
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)
Please sign in to comment.