mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: simplify file change handling in FileWatcher
This commit is contained in:
parent
8cf72a4409
commit
2ff63aaebf
1 changed files with 4 additions and 2 deletions
|
@ -74,6 +74,8 @@ class FileWatcher:
|
||||||
self.changed_files = None
|
self.changed_files = None
|
||||||
self.gitignores = gitignores
|
self.gitignores = gitignores
|
||||||
|
|
||||||
|
coder.io.file_watcher = self
|
||||||
|
|
||||||
def create_filter_func(self, gitignore_spec, ignore_func):
|
def create_filter_func(self, gitignore_spec, ignore_func):
|
||||||
"""Creates a filter function for the file watcher"""
|
"""Creates a filter function for the file watcher"""
|
||||||
|
|
||||||
|
@ -137,8 +139,8 @@ class FileWatcher:
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
dump(result)
|
dump(result)
|
||||||
if result:
|
if result:
|
||||||
self.changed_files = result
|
# ai directly update coder.abs_fnames!
|
||||||
self.io.interrupt_input()
|
self.coder.io.interrupt_input()
|
||||||
return
|
return
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue