mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
cleanup
This commit is contained in:
parent
fb76895eb1
commit
6345cd3734
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue