File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/kotlin/cc/unitmesh/devti/intentions/action/task Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -360,8 +360,8 @@ project(":") {
360
360
implementation(" org.jetbrains:markdown:0.5.1" )
361
361
implementation(libs.kotlinx.serialization.json)
362
362
363
- implementation(" cc.unitmesh:cocoa-core:0.4.2 " )
364
- implementation(" cc.unitmesh:git-commit-message:0.4.2 " )
363
+ implementation(" cc.unitmesh:cocoa-core:0.4.5 " )
364
+ implementation(" cc.unitmesh:git-commit-message:0.4.5 " )
365
365
366
366
// kanban
367
367
implementation(libs.github.api)
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import cc.unitmesh.devti.provider.context.ChatCreationContext
14
14
import cc.unitmesh.devti.provider.context.ChatOrigin
15
15
import com.intellij.openapi.application.ApplicationManager
16
16
import com.intellij.openapi.application.ReadAction
17
+ import com.intellij.openapi.application.runReadAction
17
18
import com.intellij.openapi.diagnostic.logger
18
19
import com.intellij.openapi.fileEditor.FileEditorManager
19
20
import com.intellij.openapi.progress.ProgressIndicator
@@ -93,7 +94,7 @@ class TestCodeGenTask(val request: TestCodeGenRequest) :
93
94
if (testContext.currentClass != null ) {
94
95
prompter + = " \n "
95
96
prompter + = " // here is current class information:\n "
96
- prompter + = testContext.currentClass.format()
97
+ prompter + = runReadAction { testContext.currentClass.format() }
97
98
}
98
99
99
100
prompter + = " \n ```${lang.lowercase()} \n ${request.selectText} \n ```\n "
You can’t perform that action at this time.
0 commit comments