mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 11:14:59 +00:00
fix: remove incorrect file name filtering in get_ident_filename_matches
This commit is contained in:
parent
8546a1dc86
commit
62b02d4370
1 changed files with 1 additions and 3 deletions
|
@ -590,9 +590,7 @@ class Coder:
|
||||||
|
|
||||||
for fname in self.get_all_relative_files():
|
for fname in self.get_all_relative_files():
|
||||||
base = Path(fname).with_suffix("").name.lower()
|
base = Path(fname).with_suffix("").name.lower()
|
||||||
# Skip if we already have a file with this name
|
# Only skip if we already have a file with this name AND the base name matches the identifier
|
||||||
if Path(fname).name.lower() in existing_basenames:
|
|
||||||
continue
|
|
||||||
if len(base) >= 5:
|
if len(base) >= 5:
|
||||||
all_fnames[base].add(fname)
|
all_fnames[base].add(fname)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue