mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
fix: update file watcher to use absolute paths for changed files
This commit is contained in:
parent
c3a9c05455
commit
c1a7784781
1 changed files with 2 additions and 3 deletions
|
@ -53,6 +53,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]:
|
|||
if not gitignore_paths:
|
||||
return None
|
||||
|
||||
#ai add in .aider* to always be ignored too!
|
||||
patterns = []
|
||||
for path in gitignore_paths:
|
||||
if path.exists():
|
||||
|
@ -139,9 +140,7 @@ class FileWatcher:
|
|||
if VERBOSE:
|
||||
dump(result)
|
||||
if result:
|
||||
# Convert to relative paths before updating
|
||||
rel_files = {str(Path(f).relative_to(self.root)) for f in changed_files}
|
||||
self.coder.abs_fnames.update(rel_files)
|
||||
self.coder.abs_fnames.update(changed_files)
|
||||
self.coder.io.interrupt_input()
|
||||
return
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue