Skip to content

Commit ac34230

Browse files
authored
Inline chat: select prefilled input for a fast override (microsoft#196313)
1 parent 69f4b0e commit ac34230

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ export class InlineChatController implements IEditorContribution {
362362
this._zone.value.widget.updateInfo(this._activeSession.session.message ?? localize('welcome.1', "AI-generated code may be incorrect"));
363363
this._zone.value.widget.preferredExpansionState = this._activeSession.lastExpansionState;
364364
this._zone.value.widget.value = this._activeSession.session.input ?? this._activeSession.lastInput?.value ?? this._zone.value.widget.value;
365+
if (this._activeSession.session.input) {
366+
this._zone.value.widget.selectAll();
367+
}
365368

366369
this._showWidget(true, options.position);
367370

0 commit comments

Comments
 (0)