Skip to content

Commit

Permalink
Fix accepting the welcome message followup (microsoft#195862)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens authored Oct 18, 2023
1 parent 58bdf2c commit 493d20b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/workbench/contrib/chat/browser/chatWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ export class ChatWidget extends Disposable implements IChatWidget {
return;
}

this.acceptInput(e.followup.message);

if (!e.response) {
// Followups can be shown by the welcome message, then there is no response associated.
// At some point we probably want telemetry for these too.
Expand All @@ -432,7 +434,6 @@ export class ChatWidget extends Disposable implements IChatWidget {
followup: e.followup
},
});
this.acceptInput(e.followup.message);
}));
this._register(this.inputPart.onDidChangeHeight(() => this.bodyDimension && this.layout(this.bodyDimension.height, this.bodyDimension.width)));
}
Expand Down

0 comments on commit 493d20b

Please sign in to comment.