From 3ec086172786b06d3da81aa0b1e4d2176bc9a8ee Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 27 Sep 2024 16:04:16 -0700 Subject: [PATCH] fix: Add support for raw completers in AutoCompleter --- aider/io.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aider/io.py b/aider/io.py index 624e68885..7316730a1 100644 --- a/aider/io.py +++ b/aider/io.py @@ -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