mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
fix: Add support for raw completers in AutoCompleter
This commit is contained in:
parent
37b512e4fc
commit
3ec0861727
1 changed files with 6 additions and 0 deletions
|
@ -113,6 +113,12 @@ class AutoCompleter(Completer):
|
|||
elif cmd not in matches:
|
||||
return
|
||||
|
||||
raw_completer = self.commands.get_raw_completions(cmd)
|
||||
if raw_completer:
|
||||
for comp in raw_completer(document, complete_event):
|
||||
yield comp
|
||||
return
|
||||
|
||||
if cmd not in self.command_completions:
|
||||
candidates = self.commands.get_completions(cmd)
|
||||
self.command_completions[cmd] = candidates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue