mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
save the file even if tick fence wasn't closed properly
This commit is contained in:
parent
eaf02da46b
commit
82e19fcf1d
1 changed files with 5 additions and 4 deletions
|
@ -101,9 +101,10 @@ class WholeFileCoder(Coder):
|
|||
|
||||
return "\n".join(output)
|
||||
|
||||
# TODO: take the file even it wasn't closed properly?
|
||||
#
|
||||
# if fname:
|
||||
# raise ValueError("Started a ``` block without closing it")
|
||||
if fname and allowed_to_edit:
|
||||
edited.add(fname)
|
||||
if not self.dry_run:
|
||||
new_lines = "".join(new_lines)
|
||||
Path(full_path).write_text(new_lines)
|
||||
|
||||
return edited
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue