Skip to content

Commit 4c9e9f5

Browse files
committed
_update_command: simple fix for handling 'DeleteCommand'
1 parent 7ecbb41 commit 4c9e9f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
]
2323
keywords = ["cedarscript", "code-editing", "refactoring", "code-analysis", "sql-like", "ai-assisted-development"]
2424
dependencies = [
25-
"cedarscript-ast-parser>=0.2.8",
25+
"cedarscript-ast-parser>=0.2.9",
2626
"grep-ast==0.3.3",
2727
"tree-sitter-languages==1.10.2",
2828
]

src/cedarscript_editor/cedarscript_editor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ def _update_command(self, cmd: UpdateCommand):
196196
content = IndentationInfo.from_content(content).shift_indentation(
197197
content, shift_count
198198
)
199+
case DeleteClause():
200+
pass
199201
case _:
200202
raise ValueError(f'Invalid content: {content}')
201203

0 commit comments

Comments
 (0)