From 2ff63aaebf1b29d41ddc7a9d2b40a6a67d8d8382 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 27 Nov 2024 16:31:18 -0800 Subject: [PATCH] refactor: simplify file change handling in FileWatcher --- aider/watch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/watch.py b/aider/watch.py index fb9510e42..e65d98239 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -74,6 +74,8 @@ class FileWatcher: self.changed_files = None self.gitignores = gitignores + coder.io.file_watcher = self + def create_filter_func(self, gitignore_spec, ignore_func): """Creates a filter function for the file watcher""" @@ -137,8 +139,8 @@ class FileWatcher: if VERBOSE: dump(result) if result: - self.changed_files = result - self.io.interrupt_input() + # ai directly update coder.abs_fnames! + self.coder.io.interrupt_input() return except Exception as e: if VERBOSE: