Skip to content

Commit 380689c

Browse files
chungjackaranA-aws
authored andcommitted
add message after accept/reject action
1 parent b14d8b1 commit 380689c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Bug Fix",
3+
"description": "Amazon Q /test: Unit test generation completed message shows after accept/reject action"
4+
}

packages/core/src/amazonqTest/chat/controller/controller.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ export class TestController {
717717
await vscode.window.showTextDocument(document)
718718
// TODO: send the message once again once build is enabled
719719
// this.messenger.sendMessage('Accepted', message.tabID, 'prompt')
720+
721+
this.messenger.sendMessage('Unit test generation completed', message.tabID, 'answer')
722+
720723
telemetry.ui_click.emit({ elementId: 'unitTestGeneration_acceptDiff' })
721724

722725
TelemetryHelper.instance.sendTestGenerationToolkitEvent(
@@ -840,6 +843,8 @@ export class TestController {
840843
private async endSession(data: any, step: FollowUpTypes) {
841844
const session = this.sessionStorage.getSession()
842845
if (step === FollowUpTypes.RejectCode) {
846+
this.messenger.sendMessage('Unit test generation completed.', data.tabID, 'answer')
847+
843848
TelemetryHelper.instance.sendTestGenerationToolkitEvent(
844849
session,
845850
true,

0 commit comments

Comments
 (0)