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

@@ -2141,7 +2141,7 @@ export class Editor implements Component, Focusable {
this.autocompleteAbort = undefined;
if (!suggestions || suggestions.items.length === 0) {
if (!suggestions || !Array.isArray(suggestions.items) || suggestions.items.length === 0) {
this.cancelAutocomplete();
this.tui.requestRender();
return;