File tree Expand file tree Collapse file tree
packages/extension/__tests__/hosted/api/vscode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { MainThreadExtensionService } from '../../../../__mocks__/api/mainthread
99import { MainThreadStorage } from '../../../../__mocks__/api/mathread.storage' ;
1010import { mockExtensionProps , mockExtensionProps2 } from '../../../../__mocks__/extensions' ;
1111import { initMockRPCProtocol } from '../../../../__mocks__/initRPCProtocol' ;
12+ import { ExtHostAPIIdentifier , IExtHostLocalization } from '../../../../src/common/vscode' ;
1213import ExtensionHostServiceImpl from '../../../../src/hosted/ext.host' ;
1314
1415const enum MessageType {
@@ -71,6 +72,8 @@ describe('Extension process test', () => {
7172 } ;
7273 const rpcProtocol = await initMockRPCProtocol ( mockClient ) ;
7374 extHostImpl = new ExtensionHostServiceImpl ( rpcProtocol , injector . get ( ILoggerManagerClient ) . getLogger ( ) , injector ) ;
75+ const localization = rpcProtocol . get < IExtHostLocalization > ( ExtHostAPIIdentifier . ExtHostLocalization ) ;
76+ localization . $setCurrentLanguage ( 'en' ) ;
7477 await extHostImpl . init ( ) ;
7578 await extHostImpl . $updateExtHostData ( ) ;
7679 } ) ;
You can’t perform that action at this time.
0 commit comments