File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,17 +38,17 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
38
38
const isPanelChat = typeof response !== 'string' ;
39
39
this . _responsePendingAudioCue ?. dispose ( ) ;
40
40
this . _runOnceScheduler ?. cancel ( ) ;
41
- if ( this . _lastResponse === response ?. toString ( ) ) {
41
+ const responseContent = typeof response === 'string' ? response : response ?. response . value ;
42
+ if ( this . _lastResponse === responseContent ) {
42
43
return ;
43
44
}
44
- this . _lastResponse = response ?. toString ( ) ;
45
45
this . _audioCueService . playAudioCue ( AudioCue . chatResponseReceived , true ) ;
46
46
this . _hasReceivedRequest = false ;
47
47
if ( ! response ) {
48
48
return ;
49
49
}
50
50
const errorDetails = isPanelChat && response . errorDetails ? ` ${ response . errorDetails . message } ` : '' ;
51
- const content = isPanelChat ? response . response . value : response ;
52
- status ( content + errorDetails ) ;
51
+ this . _lastResponse = responseContent ;
52
+ status ( responseContent + errorDetails ) ;
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments