@@ -417,11 +417,11 @@ export class TestController {
417417 telemetry . ui_click . emit ( { elementId : 'unitTestGeneration_cancelFixingTest' } )
418418 this . messenger . sendChatInputEnabled ( data . tabID , true )
419419 await this . sessionCleanUp ( )
420+ break
420421 case ButtonActions . PROVIDE_FEEDBACK :
421422 getFeedbackCommentData = `Q Test Generation: RequestId: ${ this . sessionStorage . getSession ( ) . startTestGenerationRequestId } , TestGenerationJobId: ${ this . sessionStorage . getSession ( ) . testGenerationJob ?. testGenerationJobId } `
422423 void submitFeedback ( placeholder , 'Amazon Q' , getFeedbackCommentData )
423424 telemetry . ui_click . emit ( { elementId : 'unitTestGeneration_provideFeedback' } )
424- break
425425 }
426426 }
427427 // This function handles actions if user gives any input from the chatInput box
@@ -995,9 +995,8 @@ export class TestController {
995995 }
996996 }
997997
998- // TODO: Check if there are more cases to
999- if yes create a enum or type for step
1000- private async endSession ( data : any , step : FollowUpTypes ) {
998+ // TODO: Check if there are more cases to if yes create a enum or type for step
999+ private async endSession ( data : any , step ?: FollowUpTypes ) {
10011000 this . messenger . sendMessage (
10021001 'Unit test generation completed.' ,
10031002 data . tabID ,
@@ -1358,7 +1357,7 @@ export class TestController {
13581357 }
13591358 : undefined ,
13601359 codeReference : session . references . map (
1361- ( ref : ShortAnswerReference ) =>
1360+ ( ref : Reference ) =>
13621361 ( {
13631362 ...ref ,
13641363 information : `${ ref . licenseName } - <a href="${ ref . url } ">${ ref . repository } </a>` ,
0 commit comments