Create test intention: do not start in write action to avoid AWT events inside
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user