Skip to content

Commit 9c7f5fd

Browse files
authored
fix: don't parse command if output is detected (#403)
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
1 parent 86bdd7b commit 9c7f5fd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/ui/suggestionManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ export class SuggestionManager {
4848

4949
private async _loadSuggestions(): Promise<void> {
5050
this.#abortController?.abort();
51-
const commandText = this.#term.getCommandState().commandText;
51+
const commandState = this.#term.getCommandState();
52+
const commandText = commandState.commandText;
5253
if (!commandText) {
5354
this.#command = "";
5455
}
55-
if (!commandText || this.#hideSuggestions) {
56+
if (!commandText || this.#hideSuggestions || commandState.hasOutput) {
5657
this.#suggestBlob = undefined;
5758
this.#activeSuggestionIdx = 0;
5859
return;

0 commit comments

Comments
 (0)