mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[ml-ranking] Fix wrong ignoring condition
GitOrigin-RevId: e8d6b83d86b19b7b2d091a2bf766b86c00a97e50
This commit is contained in:
committed by
intellij-monorepo-bot
parent
861199c951
commit
c2738217f5
@@ -194,7 +194,7 @@ class MLSorter : CompletionFinalSorter() {
|
||||
val decoratingItemsPolicy = lookupStorage.model?.decoratingPolicy() ?: DecoratingItemsPolicy.DISABLED
|
||||
val topItemsCount = if (reorderOnlyTopItems) REORDER_ONLY_TOP_K else Int.MAX_VALUE
|
||||
return items
|
||||
.filter { it.isIgnored() }
|
||||
.filter { !it.isIgnored() }
|
||||
.reorderByMLScores(element2score, topItemsCount)
|
||||
.insertIgnoredItems(items)
|
||||
.markRelevantItemsIfNeeded(element2score, lookup, decoratingItemsPolicy)
|
||||
|
||||
Reference in New Issue
Block a user