Skip to content

Commit f38e3b0

Browse files
authored
clear most recent prompt value input on input finished (microsoft#241666)
1 parent 5025856 commit f38e3b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalSuggestAddon.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ export class SuggestAddon extends Disposable implements ITerminalAddon, ISuggest
162162
this._promptInputModel = commandDetection.promptInputModel;
163163
this._promptInputModelSubscriptions.value = combinedDisposable(
164164
this._promptInputModel.onDidChangeInput(e => this._sync(e)),
165-
this._promptInputModel.onDidFinishInput(() => this.hideSuggestWidget(true)),
165+
this._promptInputModel.onDidFinishInput(() => {
166+
this._mostRecentPromptInputState = undefined;
167+
this.hideSuggestWidget(true);
168+
}),
166169
);
167170
if (this._shouldSyncWhenReady) {
168171
this._sync(this._promptInputModel);

0 commit comments

Comments
 (0)