Skip to content

Commit f263ab2

Browse files
author
seal
committed
speed start action
1 parent 36bd827 commit f263ab2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wu/seal/jsontokotlin/MakeKotlinClassAction.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class MakeKotlinClassAction : AnAction("MakeKotlinClass") {
2626
override fun actionPerformed(event: AnActionEvent) {
2727
var jsonString: String = ""
2828
try {
29-
sendActionInfo(gson.toJson(StartAction()))
29+
Thread() {
30+
sendActionInfo(gson.toJson(StartAction()))
31+
}.start()
3032
val project = event.getData(PlatformDataKeys.PROJECT)
3133
val caret = event.getData(PlatformDataKeys.CARET)
3234
val editor = event.getData(PlatformDataKeys.EDITOR_EVEN_IF_INACTIVE)

0 commit comments

Comments
 (0)