Add more checkCanceled to PsiFacade.findClass

Relates to #KT-38012
This commit is contained in:
Vladimir Dolzhenko
2020-04-09 15:09:30 +02:00
parent ed56aa3e0d
commit 6fae29bcc0
3 changed files with 6 additions and 0 deletions
@@ -17,6 +17,7 @@
package org.jetbrains.kotlin.resolve.jvm;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.DumbService;
import com.intellij.openapi.project.Project;
@@ -119,6 +120,7 @@ public class KotlinJavaPsiFacade {
}
for (KotlinPsiElementFinderWrapper finder : finders()) {
ProgressIndicatorAndCompilationCanceledStatus.checkCanceled();
if (finder instanceof CliFinder) {
JavaClass aClass = ((CliFinder) finder).findClass(request, scope);
if (aClass != null) return aClass;