mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
added test for choose_fence
This commit is contained in:
parent
b03f2e54cc
commit
610dd223b5
2 changed files with 26 additions and 3 deletions
|
@ -290,7 +290,7 @@ class Coder:
|
|||
def get_abs_fnames_content(self):
|
||||
for fname in list(self.abs_fnames):
|
||||
content = self.io.read_text(fname)
|
||||
dump(fname, content)
|
||||
|
||||
if content is None:
|
||||
relative_fname = self.get_rel_fname(fname)
|
||||
self.io.tool_error(f"Dropping {relative_fname} from the chat.")
|
||||
|
@ -303,8 +303,6 @@ class Coder:
|
|||
for _fname, content in self.get_abs_fnames_content():
|
||||
all_content += content + "\n"
|
||||
|
||||
all_content = all_content.splitlines()
|
||||
|
||||
good = False
|
||||
for fence_open, fence_close in self.fences:
|
||||
if fence_open in all_content or fence_close in all_content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue