mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform UI][se] IJPL-233778 Attempt to avoid PSI parsing for ML ranking calculation
GitOrigin-RevId: 8f5aab7d8493fc43e973fd59f230ded8e202e9ad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
51b33bbdd6
commit
57e81ecd75
+1
-1
@@ -40,7 +40,7 @@ internal class SearchEverywhereSymbolFeaturesProvider
|
||||
}
|
||||
|
||||
private fun getParentStatisticianFeatures(element: PsiElement): List<EventPair<*>> {
|
||||
val parent = runReadAction { element.takeIf { it.isValid }?.parent as? PsiNamedElement }
|
||||
val parent = runReadAction { element.takeIf { it.isValid }?.context as? PsiNamedElement }
|
||||
?: return emptyList()
|
||||
val service = service<SearchEverywhereStatisticianService>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user