@@ -612,7 +612,7 @@ export class InlineChatController implements IEditorContribution {
612
612
} else if ( response instanceof ErrorResponse ) {
613
613
// show error
614
614
if ( ! response . isCancellation ) {
615
- status = response . message ;
615
+ status = localize ( 'errorResponseMessage' , "{0}" , response . message ) ;
616
616
this . _zone . value . widget . updateStatus ( status , { classes : [ 'error' ] } ) ;
617
617
}
618
618
@@ -622,7 +622,10 @@ export class InlineChatController implements IEditorContribution {
622
622
this . _zone . value . widget . updateStatus ( '' ) ;
623
623
this . _zone . value . widget . updateMarkdownMessage ( renderedMarkdown . element ) ;
624
624
this . _zone . value . widget . updateToolbar ( true ) ;
625
- status = renderedMarkdown . element ?. textContent ?? '' ;
625
+ const content = renderedMarkdown . element ?. textContent ;
626
+ if ( content ) {
627
+ status = localize ( 'markdownResponseMessage' , "{0}" , content ) ;
628
+ }
626
629
this . _activeSession . lastExpansionState = this . _zone . value . widget . expansionState ;
627
630
628
631
} else if ( response instanceof EditResponse ) {
@@ -634,11 +637,9 @@ export class InlineChatController implements IEditorContribution {
634
637
if ( ! canContinue ) {
635
638
return State . ACCEPT ;
636
639
}
637
- // TODO: summarize proposed changes
638
- status = 'navigate to the diff editor to review proposed changes.' ;
640
+ status = localize ( 'editResponseMessage' , "Navigate to the diff editor to review proposed changes." ) ;
639
641
await this . _strategy . renderChanges ( response ) ;
640
642
}
641
-
642
643
this . _chatAccessibilityService . acceptResponse ( status ) ;
643
644
644
645
return State . WAIT_FOR_INPUT ;
0 commit comments