Skip to content

Commit 4b2e390

Browse files
committed
fix(prepush): update background thread for action update since of @deprecated API changed
1 parent 889635c commit 4b2e390

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/kotlin/cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package cc.unitmesh.devti.actions.vcs
22

33
import cc.unitmesh.devti.vcs.VcsPrompting
4+
import com.intellij.openapi.actionSystem.ActionUpdateThread
45
import com.intellij.openapi.actionSystem.AnActionEvent
56
import com.intellij.openapi.components.service
67
import com.intellij.openapi.vcs.VcsDataKeys
@@ -27,4 +28,8 @@ class PrepushReviewAction : CodeReviewAction() {
2728

2829
doReviewWithChanges(project, listOf(), selectList, listOf())
2930
}
31+
32+
override fun getActionUpdateThread(): ActionUpdateThread {
33+
return ActionUpdateThread.BGT
34+
}
3035
}

0 commit comments

Comments
 (0)