Skip to content

Commit 70c5d8b

Browse files
committed
Create test intention: do not start in write action to avoid AWT events inside
1 parent 07f0635 commit 70c5d8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

idea/src/org/jetbrains/kotlin/idea/testIntegration/KotlinCreateTestIntention.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class KotlinCreateTestIntention : SelfTargetingRangeIntention<KtNamedDeclaration
8383
return null
8484
}
8585

86+
override fun startInWriteAction() = false
87+
8688
override fun applyTo(element: KtNamedDeclaration, editor: Editor?) {
8789
if (editor == null) throw IllegalArgumentException("This intention requires an editor")
8890
val lightClass = when (element) {

0 commit comments

Comments
 (0)