mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
bugfix
This commit is contained in:
parent
676dcd8fd1
commit
95cb482938
1 changed files with 6 additions and 5 deletions
|
@ -108,11 +108,12 @@ class RepoMap:
|
|||
|
||||
if self.has_ctags:
|
||||
files_listing = self.get_ranked_tags_map(chat_files, other_files)
|
||||
num_tokens = self.token_count(files_listing)
|
||||
if self.io:
|
||||
self.io.tool_output(f"ctags map: {num_tokens/1024:.1f} k-tokens")
|
||||
ctags_msg = " with selected ctags info"
|
||||
return files_listing, ctags_msg
|
||||
if files_listing:
|
||||
num_tokens = self.token_count(files_listing)
|
||||
if self.io:
|
||||
self.io.tool_output(f"ctags map: {num_tokens/1024:.1f} k-tokens")
|
||||
ctags_msg = " with selected ctags info"
|
||||
return files_listing, ctags_msg
|
||||
|
||||
files_listing = self.get_simple_files_map(other_files)
|
||||
ctags_msg = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue