@@ -100,7 +100,7 @@ import { ResourceMap } from '../../../base/common/map.js';
100100import { IWebWorkerDescriptor } from '../../../base/browser/webWorkerFactory.js' ;
101101import { ITreeSitterLibraryService } from '../../common/services/treeSitter/treeSitterLibraryService.js' ;
102102import { StandaloneTreeSitterLibraryService } from './standaloneTreeSitterLibraryService.js' ;
103- import { CoreDataChannel , IDataChannelEvent , IDataChannelService } from '../../../platform/dataChannel/common/dataChannel.js' ;
103+ import { IDataChannelService , NullDataChannelService } from '../../../platform/dataChannel/common/dataChannel.js' ;
104104
105105class SimpleModel implements IResolvedTextEditorModel {
106106
@@ -1127,18 +1127,6 @@ class StandaloneAccessbilitySignalService implements IAccessibilitySignalService
11271127 }
11281128}
11291129
1130- class StandaloneDataChannelService implements IDataChannelService {
1131- _serviceBrand : undefined ;
1132- get onDidSendData ( ) : Event < IDataChannelEvent < unknown > > {
1133- return Event . None ;
1134- }
1135- getDataChannel < T > ( _channelId : string ) : CoreDataChannel < T > {
1136- return {
1137- sendData : ( ) => { } ,
1138- } ;
1139- }
1140- }
1141-
11421130export interface IEditorOverrideServices {
11431131 [ index : string ] : any ;
11441132}
@@ -1180,7 +1168,7 @@ registerSingleton(IMenuService, MenuService, InstantiationType.Eager);
11801168registerSingleton ( IAccessibilitySignalService , StandaloneAccessbilitySignalService , InstantiationType . Eager ) ;
11811169registerSingleton ( ITreeSitterLibraryService , StandaloneTreeSitterLibraryService , InstantiationType . Eager ) ;
11821170registerSingleton ( ILoggerService , NullLoggerService , InstantiationType . Eager ) ;
1183- registerSingleton ( IDataChannelService , StandaloneDataChannelService , InstantiationType . Eager ) ;
1171+ registerSingleton ( IDataChannelService , NullDataChannelService , InstantiationType . Eager ) ;
11841172
11851173/**
11861174 * We don't want to eagerly instantiate services because embedders get a one time chance
0 commit comments