mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-07 13:15:00 +00:00
feat: Allow setting root path for file watcher
This commit is contained in:
parent
c708e8ba8e
commit
e7bec5be1d
1 changed files with 2 additions and 2 deletions
|
@ -66,10 +66,10 @@ class FileWatcher:
|
||||||
# Compiled regex pattern for AI comments
|
# Compiled regex pattern for AI comments
|
||||||
ai_comment_pattern = re.compile(r"(?:#|//|--) *(ai\b.*|ai\b.*|.*\bai[?!]?) *$", re.IGNORECASE)
|
ai_comment_pattern = re.compile(r"(?:#|//|--) *(ai\b.*|ai\b.*|.*\bai[?!]?) *$", re.IGNORECASE)
|
||||||
|
|
||||||
def __init__(self, coder, gitignores=None, verbose=False, analytics=None):
|
def __init__(self, coder, gitignores=None, verbose=False, analytics=None, root=None):
|
||||||
self.coder = coder
|
self.coder = coder
|
||||||
self.io = coder.io
|
self.io = coder.io
|
||||||
self.root = Path(coder.root)
|
self.root = Path(root) if root else Path(coder.root)
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
self.analytics = analytics
|
self.analytics = analytics
|
||||||
self.stop_event = None
|
self.stop_event = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue