refactor: Move bang check logic to file change detection

This commit is contained in:
Paul Gauthier 2024-12-01 07:55:38 -08:00 committed by Paul Gauthier (aider)
parent 9a5925b1ad
commit 2eb7f78248

View file

@ -163,6 +163,7 @@ class FileWatcher:
"""Get any detected file changes"""
for fname in self.changed_files:
# ai actually, check for bangs up here, not down below!
if fname in self.coder.abs_fnames:
continue
self.coder.abs_fnames.add(fname)