mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: optimize file mention checking logic
This commit is contained in:
parent
5d2a930f69
commit
b9c5a7cdab
1 changed files with 3 additions and 2 deletions
|
@ -1320,10 +1320,11 @@ class Coder:
|
|||
def check_for_file_mentions(self, content):
|
||||
mentioned_rel_fnames = self.get_file_mentions(content)
|
||||
|
||||
if not mentioned_rel_fnames:
|
||||
new_mentions = mentioned_rel_fnames - self.ignore_mentions
|
||||
|
||||
if not new_mentions:
|
||||
return
|
||||
|
||||
new_mentions = mentioned_rel_fnames - self.ignore_mentions
|
||||
added_fnames = []
|
||||
group = ConfirmGroup(new_mentions)
|
||||
for rel_fname in new_mentions:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue