mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-10 14:45:00 +00:00
fix: improve AI comment detection accuracy in FileWatcher
This commit is contained in:
parent
ee7bb71a05
commit
97bf5e8d69
4 changed files with 47 additions and 31 deletions
|
@ -106,8 +106,8 @@ class FileWatcher:
|
|||
|
||||
# Check if file contains AI markers
|
||||
try:
|
||||
_, _, has_match = self.get_ai_comments(str(path_abs))
|
||||
return has_match
|
||||
comments, _, _ = self.get_ai_comments(str(path_abs))
|
||||
return bool(comments)
|
||||
except Exception:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue