Skip to content

Commit

Permalink
fix: fix kotlin read issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 18, 2023
1 parent e407586 commit 96b13cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Expand Up @@ -360,8 +360,8 @@ project(":") {
implementation("org.jetbrains:markdown:0.5.1")
implementation(libs.kotlinx.serialization.json)

implementation("cc.unitmesh:cocoa-core:0.4.2")
implementation("cc.unitmesh:git-commit-message:0.4.2")
implementation("cc.unitmesh:cocoa-core:0.4.5")
implementation("cc.unitmesh:git-commit-message:0.4.5")

// kanban
implementation(libs.github.api)
Expand Down
Expand Up @@ -14,6 +14,7 @@ import cc.unitmesh.devti.provider.context.ChatCreationContext
import cc.unitmesh.devti.provider.context.ChatOrigin
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.progress.ProgressIndicator
Expand Down Expand Up @@ -93,7 +94,7 @@ class TestCodeGenTask(val request: TestCodeGenRequest) :
if (testContext.currentClass != null) {
prompter += "\n"
prompter += "// here is current class information:\n"
prompter += testContext.currentClass.format()
prompter += runReadAction { testContext.currentClass.format() }
}

prompter += "\n```${lang.lowercase()}\n${request.selectText}\n```\n"
Expand Down

0 comments on commit 96b13cb

Please sign in to comment.