mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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):
|
def check_for_file_mentions(self, content):
|
||||||
mentioned_rel_fnames = self.get_file_mentions(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
|
return
|
||||||
|
|
||||||
new_mentions = mentioned_rel_fnames - self.ignore_mentions
|
|
||||||
added_fnames = []
|
added_fnames = []
|
||||||
group = ConfirmGroup(new_mentions)
|
group = ConfirmGroup(new_mentions)
|
||||||
for rel_fname in new_mentions:
|
for rel_fname in new_mentions:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue