This commit is contained in:
Paul Gauthier 2024-05-23 13:43:35 -07:00
parent fb76895eb1
commit 6345cd3734
3 changed files with 4 additions and 4 deletions

View file

@ -4,6 +4,8 @@
### main ### main
- Aider will notice if you paste a URL into the chat, and offer to scrape it. - Aider will notice if you paste a URL into the chat, and offer to scrape it.
- Performance improvements the repo map, especially in large repos.
- Aider will not offer to add bare filenames like `make` or `run` which may just be words.
### v0.36.0 ### v0.36.0

View file

@ -923,7 +923,7 @@ class Coder:
fname = os.path.basename(rel_fname) fname = os.path.basename(rel_fname)
# Don't add basenames that could be plain words like "run" or "make" # Don't add basenames that could be plain words like "run" or "make"
if "/" in fname or "." in fname: if "/" in fname or "." in fname or "_" in fname or "-" in fname:
if fname not in fname_to_rel_fnames: if fname not in fname_to_rel_fnames:
fname_to_rel_fnames[fname] = [] fname_to_rel_fnames[fname] = []
fname_to_rel_fnames[fname].append(rel_fname) fname_to_rel_fnames[fname].append(rel_fname)

View file

@ -76,8 +76,6 @@ class RepoMap:
if not chat_files and self.max_context_window and target > 0: if not chat_files and self.max_context_window and target > 0:
max_map_tokens = target max_map_tokens = target
dump(max_map_tokens)
try: try:
files_listing = self.get_ranked_tags_map( files_listing = self.get_ranked_tags_map(
chat_files, other_files, max_map_tokens, mentioned_fnames, mentioned_idents chat_files, other_files, max_map_tokens, mentioned_fnames, mentioned_idents
@ -243,7 +241,7 @@ class RepoMap:
# https://networkx.org/documentation/stable/_modules/networkx/algorithms/link_analysis/pagerank_alg.html#pagerank # https://networkx.org/documentation/stable/_modules/networkx/algorithms/link_analysis/pagerank_alg.html#pagerank
personalize = 10 / len(fnames) personalize = 10 / len(fnames)
if self.cache_missing or True: if self.cache_missing:
fnames = tqdm(fnames) fnames = tqdm(fnames)
self.cache_missing = False self.cache_missing = False