mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25: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:
|
if changed:
|
||||||
dump(changed)
|
dump(changed)
|
||||||
#ai if any of the .values() contain ! then join all the .values() into lines and return that
|
# Check if any values contain !
|
||||||
self.changed_files = list(changed.keys())
|
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()
|
self.interrupt_input()
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue