mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add special handling for comments containing exclamation marks
This commit is contained in:
parent
a8fe84acc7
commit
14a62586cc
1 changed files with 5 additions and 2 deletions
|
@ -377,8 +377,11 @@ class InputOutput:
|
|||
):
|
||||
if changed:
|
||||
dump(changed)
|
||||
#ai if any of the .values() contain ! then join all the .values() into lines and return that
|
||||
self.changed_files = list(changed.keys())
|
||||
# Check if any values contain !
|
||||
if any('!' in comment for comments in changed.values() if comments for comment in comments):
|
||||
self.changed_files = ['\n'.join(comment for comments in changed.values() if comments for comment in comments)]
|
||||
else:
|
||||
self.changed_files = list(changed.keys())
|
||||
self.interrupt_input()
|
||||
break
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue