File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/amazonqFeatureDev/controllers/chat Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 296296 "AWS.amazonq.featureDev.pillText.generatingCode" : " Generating code..." ,
297297 "AWS.amazonq.featureDev.pillText.requestingChanges" : " Requesting changes ..." ,
298298 "AWS.amazonq.featureDev.pillText.insertCode" : " Accept code" ,
299- "AWS.amazonq.featureDev.pillText.stoppedCodeGeneration" : " You've stopped the code generation." ,
299+ "AWS.amazonq.featureDev.pillText.stoppingCodeGeneration" : " Stopping code generation ..." ,
300+ "AWS.amazonq.featureDev.pillText.stoppedCodeGeneration" : " The code generation has stopped." ,
300301 "AWS.amazonq.featureDev.pillText.sendFeedback" : " Send feedback" ,
301302 "AWS.amazonq.featureDev.pillText.selectFiles" : " Select files for context" ,
302303 "AWS.amazonq.featureDev.pillText.retry" : " Retry" ,
Original file line number Diff line number Diff line change @@ -425,6 +425,7 @@ export class FeatureDevController {
425425
426426 if ( session ?. state ?. tokenSource ?. token . isCancellationRequested ) {
427427 this . disposeToken ( session )
428+ this . workOnNewTask ( session )
428429 } else {
429430 this . messenger . sendAsyncEventProgress ( tabID , false , undefined )
430431
@@ -446,6 +447,11 @@ export class FeatureDevController {
446447 }
447448 }
448449 private workOnNewTask ( message : any ) {
450+ this . messenger . sendAnswer ( {
451+ message : i18n ( 'AWS.amazonq.featureDev.pillText.stoppedCodeGeneration' ) ,
452+ type : 'answer-part' ,
453+ tabID : message . tabID ,
454+ } )
449455 this . messenger . sendAnswer ( {
450456 type : 'system-prompt' ,
451457 tabID : message . tabID ,
@@ -713,11 +719,10 @@ export class FeatureDevController {
713719
714720 private async stopResponse ( message : any ) {
715721 this . messenger . sendAnswer ( {
716- message : i18n ( 'AWS.amazonq.featureDev.pillText.stoppedCodeGeneration ' ) ,
722+ message : i18n ( 'AWS.amazonq.featureDev.pillText.stoppingCodeGeneration ' ) ,
717723 type : 'answer-part' ,
718724 tabID : message . tabID ,
719725 } )
720- this . workOnNewTask ( message )
721726 const session = await this . sessionStorage . getSession ( message . tabID )
722727 if ( session . state ?. tokenSource ) {
723728 session . state ?. tokenSource ?. cancel ( )
You can’t perform that action at this time.
0 commit comments