Create test intention: do not start in write action to avoid AWT events inside

This commit is contained in:
Mikhail Glukhikh
2017-01-31 20:42:57 +03:00
parent 07f06352d7
commit 70c5d8b9ad
@@ -83,6 +83,8 @@ class KotlinCreateTestIntention : SelfTargetingRangeIntention<KtNamedDeclaration
return null
}
override fun startInWriteAction() = false
override fun applyTo(element: KtNamedDeclaration, editor: Editor?) {
if (editor == null) throw IllegalArgumentException("This intention requires an editor")
val lightClass = when (element) {