From 4b2e39024b73c870fb162947f266a8917985ac56 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Mon, 26 Feb 2024 16:26:36 +0800 Subject: [PATCH] fix(prepush): update background thread for action update since of @Deprecated API changed --- .../cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt b/src/main/kotlin/cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt index ec29b2982c..c7662a6702 100644 --- a/src/main/kotlin/cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt +++ b/src/main/kotlin/cc/unitmesh/devti/actions/vcs/PrepushReviewAction.kt @@ -1,6 +1,7 @@ package cc.unitmesh.devti.actions.vcs import cc.unitmesh.devti.vcs.VcsPrompting +import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.components.service import com.intellij.openapi.vcs.VcsDataKeys @@ -27,4 +28,8 @@ class PrepushReviewAction : CodeReviewAction() { doReviewWithChanges(project, listOf(), selectList, listOf()) } + + override fun getActionUpdateThread(): ActionUpdateThread { + return ActionUpdateThread.BGT + } }