From d957adf06246b1175aa5045bd8223808a04444d2 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 25 Oct 2024 13:22:11 -0700 Subject: [PATCH] refactor: remove debug dump() call from watch_source_files function --- aider/watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index 6e756a0ee..5bfaa22a3 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -73,7 +73,6 @@ def watch_source_files( and returns True if it should be ignored """ root = Path(directory) - dump(root) gitignore_paths = [Path(g) for g in gitignores] if gitignores else [] gitignore_spec = load_gitignores(gitignore_paths) @@ -94,6 +93,7 @@ def watch_source_files( if ignore_func and ignore_func(rel_path): return False + # ai: check to see if the file contains "# *ai\w", "// *ai\w", case insensitive and only return files that do return is_source_file(path_obj) # Watch the directory for changes