File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/kotlin/cc/unitmesh/devti/actions/chat/base Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import cc.unitmesh.devti.gui.chat.ChatCodingPanel
5
5
import cc.unitmesh.devti.gui.chat.ChatContext
6
6
import cc.unitmesh.devti.provider.ContextPrompter
7
7
import cc.unitmesh.devti.gui.sendToChatPanel
8
+ import com.intellij.openapi.actionSystem.ActionUpdateThread
8
9
import com.intellij.openapi.actionSystem.AnAction
9
10
import com.intellij.openapi.actionSystem.AnActionEvent
10
11
import com.intellij.openapi.actionSystem.CommonDataKeys
@@ -19,6 +20,8 @@ abstract class ChatBaseAction : AnAction() {
19
20
private val logger = logger<ChatBaseAction >()
20
21
}
21
22
23
+ override fun getActionUpdateThread (): ActionUpdateThread = ActionUpdateThread .EDT
24
+
22
25
open fun chatCompletedPostAction (event : AnActionEvent , panel : ChatCodingPanel ): ((response: String ) -> Unit )? = null
23
26
24
27
abstract fun getActionType (): ChatActionType
You can’t perform that action at this time.
0 commit comments