mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +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.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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue