mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
fix: Add refresh parameter to RepoMap constructor
This commit is contained in:
parent
ce10b89896
commit
b3327c38b8
1 changed files with 13 additions and 1 deletions
|
@ -41,9 +41,11 @@ class RepoMap:
|
||||||
verbose=False,
|
verbose=False,
|
||||||
max_context_window=None,
|
max_context_window=None,
|
||||||
map_mul_no_files=8,
|
map_mul_no_files=8,
|
||||||
|
refresh="auto",
|
||||||
):
|
):
|
||||||
self.io = io
|
self.io = io
|
||||||
self.verbose = verbose
|
self.verbose = verbose
|
||||||
|
self.refresh = refresh
|
||||||
|
|
||||||
if not root:
|
if not root:
|
||||||
root = os.getcwd()
|
root = os.getcwd()
|
||||||
|
@ -406,6 +408,16 @@ class RepoMap:
|
||||||
max_map_tokens=None,
|
max_map_tokens=None,
|
||||||
mentioned_fnames=None,
|
mentioned_fnames=None,
|
||||||
mentioned_idents=None,
|
mentioned_idents=None,
|
||||||
|
):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def get_ranked_tags_map_uncached(
|
||||||
|
self,
|
||||||
|
chat_fnames,
|
||||||
|
other_fnames=None,
|
||||||
|
max_map_tokens=None,
|
||||||
|
mentioned_fnames=None,
|
||||||
|
mentioned_idents=None,
|
||||||
):
|
):
|
||||||
if not other_fnames:
|
if not other_fnames:
|
||||||
other_fnames = list()
|
other_fnames = list()
|
||||||
|
@ -416,7 +428,7 @@ class RepoMap:
|
||||||
if not mentioned_idents:
|
if not mentioned_idents:
|
||||||
mentioned_idents = set()
|
mentioned_idents = set()
|
||||||
|
|
||||||
spin = Spinner("Preparing repo map")
|
spin = Spinner("Updating repo map")
|
||||||
|
|
||||||
ranked_tags = self.get_ranked_tags(
|
ranked_tags = self.get_ranked_tags(
|
||||||
chat_fnames,
|
chat_fnames,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue