fix(lib/vscode): update electron-sandbox localizationService

I'm not sure if we even use this but they changed the LocalizationService.o

It looks like it using one called ISharedProcessService now.
This commit is contained in:
Joe Previte 2021-03-11 11:09:37 -07:00
parent 42ff0ec5e7
commit 8512be85a5
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 1 additions and 9 deletions

View File

@ -5,12 +5,8 @@
import { ProxyChannel } from 'vs/base/parts/ipc/common/ipc';
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations';
<<<<<<< HEAD:lib/vscode/src/vs/workbench/services/localizations/electron-browser/localizationsService.ts
=======
import { ISharedProcessService } from 'vs/platform/ipc/electron-sandbox/services';
>>>>>>> e8cd17a97d8c58fffcbac05394b3ee2b3c72d384:lib/vscode/src/vs/workbench/services/localizations/electron-sandbox/localizationsService.ts
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
// @ts-ignore: interface is implemented via proxy
export class LocalizationsService implements ILocalizationsService {
@ -18,13 +14,9 @@ export class LocalizationsService implements ILocalizationsService {
declare readonly _serviceBrand: undefined;
constructor(
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
@ISharedProcessService sharedProcessService: ISharedProcessService,
) {
<<<<<<< HEAD:lib/vscode/src/vs/workbench/services/localizations/electron-browser/localizationsService.ts
return createChannelSender<ILocalizationsService>(remoteAgentService.getConnection()!.getChannel('localizations'));
=======
return ProxyChannel.toService<ILocalizationsService>(sharedProcessService.getChannel('localizations'));
>>>>>>> e8cd17a97d8c58fffcbac05394b3ee2b3c72d384:lib/vscode/src/vs/workbench/services/localizations/electron-sandbox/localizationsService.ts
}
}