@@ -90,6 +90,8 @@ import { staticObservableValue } from 'vs/base/common/observableValue';
90
90
import 'vs/editor/common/services/languageFeaturesService' ;
91
91
import { DefaultConfigurationModel } from 'vs/platform/configuration/common/configurations' ;
92
92
import { WorkspaceEdit } from 'vs/editor/common/languages' ;
93
+ import { AudioCue , IAudioCueService , Sound } from 'vs/platform/audioCues/browser/audioCueService' ;
94
+ import { constObservable , IObservable } from 'vs/base/common/observable' ;
93
95
94
96
class SimpleModel implements IResolvedTextEditorModel {
95
97
@@ -971,6 +973,22 @@ class StandaloneContextMenuService extends ContextMenuService {
971
973
}
972
974
}
973
975
976
+ class StandaloneAudioService implements IAudioCueService {
977
+ _serviceBrand : undefined ;
978
+ async playAudioCue ( cue : AudioCue , allowManyInParallel ?: boolean | undefined ) : Promise < void > {
979
+ }
980
+
981
+ async playAudioCues ( cues : AudioCue [ ] ) : Promise < void > {
982
+ }
983
+
984
+ isEnabled ( cue : AudioCue ) : IObservable < boolean , void > {
985
+ return constObservable ( false ) ;
986
+ }
987
+
988
+ async playSound ( cue : Sound , allowManyInParallel ?: boolean | undefined ) : Promise < void > {
989
+ }
990
+ }
991
+
974
992
export interface IEditorOverrideServices {
975
993
[ index : string ] : any ;
976
994
}
@@ -1007,6 +1025,7 @@ registerSingleton(IOpenerService, OpenerService, InstantiationType.Eager);
1007
1025
registerSingleton ( IClipboardService , BrowserClipboardService , InstantiationType . Eager ) ;
1008
1026
registerSingleton ( IContextMenuService , StandaloneContextMenuService , InstantiationType . Eager ) ;
1009
1027
registerSingleton ( IMenuService , MenuService , InstantiationType . Eager ) ;
1028
+ registerSingleton ( IAudioCueService , StandaloneAudioService , InstantiationType . Eager ) ;
1010
1029
1011
1030
/**
1012
1031
* We don't want to eagerly instantiate services because embedders get a one time chance
0 commit comments