Skip to content

Commit 7406bce

Browse files
committed
skip content widget when having session.input
1 parent eba77da commit 7406bce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ export class InlineChatController implements IEditorContribution {
340340
break;
341341
}
342342

343+
if (session.session.input) {
344+
options.message = session.session.input;
345+
}
343346
this._session = session;
344347
return State.INIT_UI;
345348
}
@@ -371,10 +374,6 @@ export class InlineChatController implements IEditorContribution {
371374

372375

373376
this._zone.value.widget.updateInfo(message);
374-
this._zone.value.widget.value = this._session.session.input ?? this._session.lastInput?.value ?? this._zone.value.widget.value;
375-
if (this._session.session.input) {
376-
this._zone.value.widget.selectAll();
377-
}
378377

379378
this._showWidget(!this._session.lastExchange);
380379

@@ -451,6 +450,7 @@ export class InlineChatController implements IEditorContribution {
451450
this.updateInput(options.message);
452451
aria.alert(options.message);
453452
delete options.message;
453+
this._showWidget(false);
454454
}
455455

456456
let message = Message.NONE;

0 commit comments

Comments
 (0)