fix(tui): await async slash command completions closes #2719
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user