fix(tui): await async slash command completions closes #2719

This commit is contained in:
Mario Zechner
2026-03-31 14:41:26 +02:00
parent 5ce0d15b66
commit a1e107897d
5 changed files with 53 additions and 5 deletions

View File

@@ -966,7 +966,7 @@ export interface RegisteredCommand {
name: string;
sourceInfo: SourceInfo;
description?: string;
getArgumentCompletions?: (argumentPrefix: string) => AutocompleteItem[] | null;
getArgumentCompletions?: (argumentPrefix: string) => AutocompleteItem[] | null | Promise<AutocompleteItem[] | null>;
handler: (args: string, ctx: ExtensionCommandContext) => Promise<void>;
}