File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
19
19
private _responsePendingAudioCue : IDisposable | undefined ;
20
20
private _hasReceivedRequest : boolean = false ;
21
21
private _runOnceScheduler : RunOnceScheduler ;
22
+ private _lastResponse : string | undefined ;
22
23
23
24
constructor ( @IAudioCueService private readonly _audioCueService : IAudioCueService ) {
24
25
super ( ) ;
@@ -37,6 +38,10 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
37
38
const isPanelChat = typeof response !== 'string' ;
38
39
this . _responsePendingAudioCue ?. dispose ( ) ;
39
40
this . _runOnceScheduler ?. cancel ( ) ;
41
+ if ( this . _lastResponse === response ?. toString ( ) ) {
42
+ return ;
43
+ }
44
+ this . _lastResponse = response ?. toString ( ) ;
40
45
this . _audioCueService . playAudioCue ( AudioCue . chatResponseReceived , true ) ;
41
46
this . _hasReceivedRequest = false ;
42
47
if ( ! response ) {
You can’t perform that action at this time.
0 commit comments