Skip to content

Commit 32f756c

Browse files
committed
feat(sketch): enable AutoSketchMode by default
Enable AutoSketchMode when sending input to the sketch tool window to ensure the mode is active during the operation.
1 parent 53dca04 commit 32f756c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/kotlin/cc/unitmesh/devti/mcp/host/AutoDevMcpTools.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cc.unitmesh.devti.mcp.host
22

33
import cc.unitmesh.devti.gui.AutoDevToolWindowFactory
44
import cc.unitmesh.devti.gui.chat.message.ChatActionType
5+
import cc.unitmesh.devti.sketch.AutoSketchMode
56
import com.intellij.openapi.project.Project
67
import kotlinx.serialization.Serializable
78
import com.intellij.openapi.application.runInEdt
@@ -24,6 +25,7 @@ class IssueEvaluateTool : AbstractMcpTool<IssueArgs>() {
2425
val issue = args.issue
2526

2627
runInEdt {
28+
AutoSketchMode.getInstance(project).isEnable = true
2729
AutoDevToolWindowFactory.Companion.sendToSketchToolWindow(project, ChatActionType.SKETCH) { ui, _ ->
2830
ui.sendInput(issue)
2931
}

0 commit comments

Comments
 (0)