Skip to content

Commit 60f9b02

Browse files
committed
feat(BuiltinCommand): disable command in sketch mode #335
Add `enableInSketch` flag to disable command execution in sketch mode.
1 parent b0a3656 commit 60f9b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/devin/dataprovider/BuiltinCommand.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ enum class BuiltinCommand(
6060
"Execute a shell command and collect (ProcessBuild) the result",
6161
AllIcons.Debugger.Console,
6262
true,
63-
true
63+
true,
64+
enableInSketch = false
6465
),
6566
COMMIT("commit", "Do commit with current workspace with some messages.", AllIcons.Vcs.CommitNode, false),
6667
BROWSE("browse", "Fetch the content of a given URL.", AllIcons.Toolwindows.WebToolWindow, false, true),

0 commit comments

Comments
 (0)