add missing read action (EA-72578)
This commit is contained in:
+4
-2
@@ -62,8 +62,10 @@ public class KotlinReferencesSearcher : QueryExecutorBase<PsiReference, Referenc
|
|||||||
val unwrappedElement = element.namedUnwrappedElement ?: return
|
val unwrappedElement = element.namedUnwrappedElement ?: return
|
||||||
|
|
||||||
val classNameForCompanionObject = unwrappedElement.getClassNameForCompanionObject()
|
val classNameForCompanionObject = unwrappedElement.getClassNameForCompanionObject()
|
||||||
val words = unwrappedElement.getSpecialNamesToSearch() +
|
val words = runReadAction {
|
||||||
(if (classNameForCompanionObject != null) listOf(classNameForCompanionObject) else emptyList())
|
unwrappedElement.getSpecialNamesToSearch() +
|
||||||
|
(if (classNameForCompanionObject != null) listOf(classNameForCompanionObject) else emptyList())
|
||||||
|
}
|
||||||
|
|
||||||
val effectiveSearchScope = runReadAction { queryParameters.effectiveSearchScope }
|
val effectiveSearchScope = runReadAction { queryParameters.effectiveSearchScope }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user