Skip to content

Commit c355944

Browse files
committed
fix(ui): prevent action execution when sketch is incomplete
1 parent cce14f9 commit c355944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/kotlin/cc/unitmesh/devti/sketch/ui/code/CodeHighlightSketch.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ open class CodeHighlightSketch(
218218
devinRunButtonPresentation?.icon = AutoDevIcons.RUN
219219
return ActionButton(
220220
DumbAwareAction.create {
221+
if (isComplete) return@create
221222
val sketchService = project.getService(AutoSketchMode::class.java)
222223
if (sketchService.listener == null) {
223224
AutoInputService.getInstance(project).putText(newText)

0 commit comments

Comments
 (0)