You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ui): add EDIT_FILE command support with diff view #408
Add support for executing EDIT_FILE commands in CodeHighlightSketch with automatic and manual execution modes. Commands now display results using DiffLangSketch for better visualization of file changes.
Copy file name to clipboardExpand all lines: core/src/main/kotlin/cc/unitmesh/devti/command/dataprovider/BuiltinCommand.kt
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ enum class BuiltinCommand(
22
22
FILE(
23
23
"file",
24
24
"Read and retrieve file content from project using relative path. Essential for examining existing code, configurations, or documentation before modifications. Supports line ranges (L1-L10) and global filename search. Returns complete file content with line numbers for context understanding.",
25
-
AllIcons.Actions.Copy,
25
+
AllIcons.FileTypes.Any_type,
26
26
true,
27
27
true
28
28
),
@@ -60,8 +60,7 @@ enum class BuiltinCommand(
60
60
"edit_file",
61
61
"Apply structured file edits using target_file, instructions, and code_edit parameters. Designed for precise code modifications with clear context markers. Use // ... existing code ... to represent unchanged sections. Ideal for targeted edits with explicit instructions.",
0 commit comments