mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
fall back to global repo map if files in chat are disjoint from rest of repo
This commit is contained in:
parent
a9d9c6881d
commit
738c3b8e5e
1 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,11 @@ class Coder:
|
|||
|
||||
other_files = set(self.get_all_abs_files()) - set(self.abs_fnames)
|
||||
repo_content = self.repo_map.get_repo_map(self.abs_fnames, other_files)
|
||||
|
||||
# fall back to global repo map if files in chat are disjoint from rest of repo
|
||||
if not repo_content:
|
||||
repo_content = self.repo_map.get_repo_map(set(), set(self.get_all_abs_files()))
|
||||
|
||||
return repo_content
|
||||
|
||||
def get_files_messages(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue