Skip to content

Commit e5d4538

Browse files
committed
message now only in endSession
1 parent b66b01a commit e5d4538

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,6 @@ 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-
723720
telemetry.ui_click.emit({ elementId: 'unitTestGeneration_acceptDiff' })
724721

725722
TelemetryHelper.instance.sendTestGenerationToolkitEvent(
@@ -841,10 +838,10 @@ export class TestController {
841838

842839
// TODO: Check if there are more cases to endSession if yes create a enum or type for step
843840
private async endSession(data: any, step: FollowUpTypes) {
841+
this.messenger.sendMessage('Unit test generation completed.', data.tabID, 'answer')
842+
844843
const session = this.sessionStorage.getSession()
845844
if (step === FollowUpTypes.RejectCode) {
846-
this.messenger.sendMessage('Unit test generation completed.', data.tabID, 'answer')
847-
848845
TelemetryHelper.instance.sendTestGenerationToolkitEvent(
849846
session,
850847
true,

0 commit comments

Comments
 (0)