fix: Add support for raw completers in AutoCompleter

This commit is contained in:
Paul Gauthier 2024-09-27 16:04:16 -07:00 committed by Paul Gauthier (aider)
parent 37b512e4fc
commit 3ec0861727

View file

@ -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