mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: only initialize FileWatcher when watch_files flag is set
This commit is contained in:
parent
90339f9741
commit
b2b43d2bd3
1 changed files with 2 additions and 2 deletions
|
@ -821,8 +821,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.aiderignore:
|
||||
ignores.append(args.aiderignore)
|
||||
|
||||
# only if --watch-files ai!
|
||||
FileWatcher(coder, gitignores=ignores, verbose=args.verbose)
|
||||
if args.watch_files:
|
||||
FileWatcher(coder, gitignores=ignores, verbose=args.verbose)
|
||||
|
||||
coder.show_announcements()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue