diff --git a/src/ui/suggestionManager.ts b/src/ui/suggestionManager.ts index 6d75ca0a..a45b61f4 100644 --- a/src/ui/suggestionManager.ts +++ b/src/ui/suggestionManager.ts @@ -48,11 +48,12 @@ export class SuggestionManager { private async _loadSuggestions(): Promise { this.#abortController?.abort(); - const commandText = this.#term.getCommandState().commandText; + const commandState = this.#term.getCommandState(); + const commandText = commandState.commandText; if (!commandText) { this.#command = ""; } - if (!commandText || this.#hideSuggestions) { + if (!commandText || this.#hideSuggestions || commandState.hasOutput) { this.#suggestBlob = undefined; this.#activeSuggestionIdx = 0; return;