Skip to content

Commit 7585616

Browse files
committed
Set terminal input when running a command
Fixes microsoft#4728
1 parent 18c74e3 commit 7585616

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)