Skip to content

Commit 09734e0

Browse files
authored
Merge pull request microsoft#209887 from microsoft/tyriar/4728
Set terminal input when running a command
2 parents 5bde174 + 7585616 commit 09734e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ export class TerminalChatWidget extends Disposable {
167167
addToHistory(input: string): void {
168168
this._inlineChatWidget.addToHistory(input);
169169
this._inlineChatWidget.saveState();
170+
this._inlineChatWidget.value = input;
171+
this._inlineChatWidget.selectAll(true);
170172
}
171173
setValue(value?: string) {
172174
this._inlineChatWidget.value = value ?? '';

0 commit comments

Comments
 (0)