mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Accept cell chat response before running follow up (#203271)
This commit is contained in:
parent
82d1ae423e
commit
c77b63e865
|
@ -379,11 +379,12 @@ export class NotebookCellChatController extends Disposable {
|
|||
const followups = await this._activeSession.provider.provideFollowups(this._activeSession.session, replyResponse.raw, followupCts.token);
|
||||
if (followups && this._widget) {
|
||||
const widget = this._widget;
|
||||
widget.updateFollowUps(followups, followup => {
|
||||
widget.updateFollowUps(followups, async followup => {
|
||||
if (followup.kind === 'reply') {
|
||||
widget.value = followup.message;
|
||||
this.acceptInput();
|
||||
} else {
|
||||
await this.acceptSession();
|
||||
this._commandService.executeCommand(followup.commandId, ...(followup.args ?? []));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue