fix(lib/vscode): fix merge conflicts in localizationsService.ts
This commit is contained in:
@@ -4,33 +4,6 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations';
|
||||
<<<<<<< HEAD
|
||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||
import { IRemoteAgentService } from '../../remote/common/remoteAgentService';
|
||||
|
||||
// @ts-ignore: interface is implemented via proxy
|
||||
export class LocalizationsService implements ILocalizationsService {
|
||||
|
||||
declare readonly _serviceBrand: undefined;
|
||||
|
||||
constructor(
|
||||
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
|
||||
) {
|
||||
/*
|
||||
NOTE@coder:
|
||||
Upstream, they use the ISharedProcessService.
|
||||
|
||||
We run this on the browser where there is no shared process so it needs to connect
|
||||
to the localization channel through the remote agent.
|
||||
3/16/21 jsjoeio code-asher
|
||||
*/
|
||||
return ProxyChannel.toService<ILocalizationsService>(remoteAgentService.getConnection()!.getChannel('localizations'));
|
||||
}
|
||||
}
|
||||
|
||||
registerSingleton(ILocalizationsService, LocalizationsService, true);
|
||||
=======
|
||||
import { registerSharedProcessRemoteService } from 'vs/platform/ipc/electron-sandbox/services';
|
||||
|
||||
registerSharedProcessRemoteService(ILocalizationsService, 'localizations', { supportsDelayedInstantiation: true });
|
||||
>>>>>>> 801aed93200dc0ccf325a09089c911e8e2b612d0
|
||||
|
||||
Reference in New Issue
Block a user