@@ -23,14 +23,13 @@ import { RPCProtocol, RPCProtocolImpl } from '../../../common/rpc-protocol';
23
23
import { ClipboardExt } from '../../../plugin/clipboard-ext' ;
24
24
import { EditorsAndDocumentsExtImpl } from '../../../plugin/editors-and-documents' ;
25
25
import { MessageRegistryExt } from '../../../plugin/message-registry' ;
26
- import { PluginManagerExtImpl } from '../../../plugin/plugin-manager' ;
27
- import { KeyValueStorageProxy } from '../../../plugin/plugin-storage' ;
26
+ import { MinimalTerminalServiceExt , PluginManagerExtImpl } from '../../../plugin/plugin-manager' ;
27
+ import { InternalStorageExt , KeyValueStorageProxy } from '../../../plugin/plugin-storage' ;
28
28
import { PreferenceRegistryExtImpl } from '../../../plugin/preference-registry' ;
29
- import { SecretsExtImpl } from '../../../plugin/secrets-ext' ;
29
+ import { InternalSecretsExt , SecretsExtImpl } from '../../../plugin/secrets-ext' ;
30
30
import { TerminalServiceExtImpl } from '../../../plugin/terminal-ext' ;
31
31
import { WebviewsExtImpl } from '../../../plugin/webviews' ;
32
32
import { WorkspaceExtImpl } from '../../../plugin/workspace' ;
33
- import { createDebugExtStub } from './debug-stub' ;
34
33
import { EnvExtImpl } from '../../../plugin/env' ;
35
34
import { WorkerEnvExtImpl } from './worker-env-ext' ;
36
35
import { DebugExtImpl } from '../../../plugin/debug/debug-ext' ;
@@ -58,16 +57,19 @@ export default new ContainerModule(bind => {
58
57
59
58
bind ( PluginManagerExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
60
59
bind ( EnvExtImpl ) . to ( WorkerEnvExtImpl ) . inSingletonScope ( ) ;
61
- bind ( LocalizationExt ) . to ( LocalizationExtImpl ) . inSingletonScope ( ) ;
60
+ bind ( LocalizationExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
61
+ bind ( LocalizationExt ) . toService ( LocalizationExtImpl ) ;
62
62
bind ( KeyValueStorageProxy ) . toSelf ( ) . inSingletonScope ( ) ;
63
+ bind ( InternalStorageExt ) . toService ( KeyValueStorageProxy ) ;
63
64
bind ( SecretsExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
65
+ bind ( InternalSecretsExt ) . toService ( SecretsExtImpl ) ;
64
66
bind ( PreferenceRegistryExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
65
- bind ( DebugExtImpl ) . toDynamicValue ( ( { container } ) => createDebugExtStub ( container ) )
66
- . inSingletonScope ( ) ;
67
+ bind ( DebugExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
67
68
bind ( EditorsAndDocumentsExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
68
69
bind ( WorkspaceExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
69
70
bind ( MessageRegistryExt ) . toSelf ( ) . inSingletonScope ( ) ;
70
71
bind ( ClipboardExt ) . toSelf ( ) . inSingletonScope ( ) ;
71
72
bind ( WebviewsExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
72
73
bind ( TerminalServiceExtImpl ) . toSelf ( ) . inSingletonScope ( ) ;
74
+ bind ( MinimalTerminalServiceExt ) . toService ( TerminalServiceExtImpl ) ;
73
75
} ) ;
0 commit comments