From dba55ec34d0475bc6519b15ed3ef0afc6ae27ae3 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Mon, 23 May 2016 19:44:19 +0300 Subject: [PATCH] More write action requirement remove Workaround for exception: Refactorings should not be started inside write action because they start progress inside and any read action from the progress task would cause the deadlock --- .../kotlin/android/inspection/IllegalIdentifierInspection.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt b/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt index 8ca83c74a8b..2c1cdc4282f 100644 --- a/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt +++ b/idea/idea-android/src/org/jetbrains/kotlin/android/inspection/IllegalIdentifierInspection.kt @@ -75,6 +75,8 @@ class IllegalIdentifierInspection : AbstractKotlinInspection() { override fun getName() = "Rename" override fun getFamilyName() = name + override fun startInWriteAction(): Boolean = false + override fun applyFix(project: Project, descriptor: ProblemDescriptor) { val element = descriptor.psiElement ?: return val file = element.containingFile ?: return