mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
KTIJ-33154 [kotlin] Avoid calling checkCancelled on every isAcceptable check
In all relevant places, `cancelableCollectFilterProcessor` should ensure that `checkCanceled` is called frequently enough (but not too often) GitOrigin-RevId: 4bcd4fcb05f6be0f859c23fcf97c9053d3f66477
This commit is contained in:
committed by
intellij-monorepo-bot
parent
da086aac5b
commit
7f28ff36e9
-1
@@ -43,7 +43,6 @@ class KtSymbolFromIndexProvider(
|
||||
|
||||
context(KaSession)
|
||||
private fun <T : PsiElement> T.isAcceptable(psiFilter: (T) -> Boolean): Boolean {
|
||||
ProgressManager.checkCanceled()
|
||||
if (!psiFilter(this)) return false
|
||||
|
||||
if (kotlinFqName?.isExcludedFromAutoImport(project, file) == true) return false
|
||||
|
||||
Reference in New Issue
Block a user