We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86bdd7b commit 9c7f5fdCopy full SHA for 9c7f5fd
1 file changed
src/ui/suggestionManager.ts
@@ -48,11 +48,12 @@ export class SuggestionManager {
48
49
private async _loadSuggestions(): Promise<void> {
50
this.#abortController?.abort();
51
- const commandText = this.#term.getCommandState().commandText;
+ const commandState = this.#term.getCommandState();
52
+ const commandText = commandState.commandText;
53
if (!commandText) {
54
this.#command = "";
55
}
- if (!commandText || this.#hideSuggestions) {
56
+ if (!commandText || this.#hideSuggestions || commandState.hasOutput) {
57
this.#suggestBlob = undefined;
58
this.#activeSuggestionIdx = 0;
59
return;
0 commit comments