File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/vs/workbench/contrib/chat/browser Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,18 @@ export class ChatAccessibilityService extends Disposable implements IChatAccessi
17
17
18
18
private _responsePendingAudioCue : IDisposable | undefined ;
19
19
private _hasReceivedRequest : boolean = false ;
20
- private _runOnceScheduler : RunOnceScheduler | undefined ;
20
+ private _runOnceScheduler : RunOnceScheduler ;
21
21
22
22
constructor ( @IAudioCueService private readonly _audioCueService : IAudioCueService ) {
23
23
super ( ) ;
24
- }
25
- acceptRequest ( ) : void {
26
- this . _audioCueService . playAudioCue ( AudioCue . chatRequestSent , true ) ;
27
- this . _runOnceScheduler = new RunOnceScheduler ( ( ) => {
24
+ this . _register ( this . _runOnceScheduler = new RunOnceScheduler ( ( ) => {
28
25
if ( ! this . _hasReceivedRequest ) {
29
26
this . _responsePendingAudioCue = this . _audioCueService . playAudioCueLoop ( AudioCue . chatResponsePending , CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS ) ;
30
27
}
31
- } , CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS ) ;
28
+ } , CHAT_RESPONSE_PENDING_AUDIO_CUE_LOOP_MS ) ) ;
29
+ }
30
+ acceptRequest ( ) : void {
31
+ this . _audioCueService . playAudioCue ( AudioCue . chatRequestSent , true ) ;
32
32
this . _runOnceScheduler . schedule ( ) ;
33
33
}
34
34
acceptResponse ( response ?: IChatResponseViewModel | string ) : void {
You can’t perform that action at this time.
0 commit comments