fix: remove incorrect file name filtering in get_ident_filename_matches

This commit is contained in:
Paul Gauthier (aider) 2024-11-26 06:25:15 -08:00
parent 8546a1dc86
commit 62b02d4370

View file

@ -590,9 +590,7 @@ class Coder:
for fname in self.get_all_relative_files():
base = Path(fname).with_suffix("").name.lower()
# Skip if we already have a file with this name
if Path(fname).name.lower() in existing_basenames:
continue
# Only skip if we already have a file with this name AND the base name matches the identifier
if len(base) >= 5:
all_fnames[base].add(fname)