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
This commit is contained in:
Nikolay Krasko
2016-05-23 19:44:19 +03:00
parent 7d1a5f1d2b
commit dba55ec34d
@@ -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