Skip to content

Commit

Permalink
fix(prepush): update background thread for action update since of @de…
Browse files Browse the repository at this point in the history
…precated API changed
  • Loading branch information
phodal committed Feb 26, 2024
1 parent 889635c commit 4b2e390
Showing 1 changed file with 5 additions and 0 deletions.
@@ -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
Expand All @@ -27,4 +28,8 @@ class PrepushReviewAction : CodeReviewAction() {

doReviewWithChanges(project, listOf(), selectList, listOf())
}

override fun getActionUpdateThread(): ActionUpdateThread {
return ActionUpdateThread.BGT
}
}

0 comments on commit 4b2e390

Please sign in to comment.