mirror of https://git.tuxpa.in/a/code-server.git
fix(lib/vscode): fix merge conflicts in localizationsService.ts
This commit is contained in:
parent
448ba0ccf2
commit
5e63b7f53c
|
@ -5,7 +5,6 @@ import { localize } from 'vs/nls';
|
||||||
import { Extensions, IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry';
|
import { Extensions, IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry';
|
||||||
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||||
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
|
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection';
|
||||||
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations';
|
|
||||||
import { ILogService } from 'vs/platform/log/common/log';
|
import { ILogService } from 'vs/platform/log/common/log';
|
||||||
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
|
import { INotificationService, Severity } from 'vs/platform/notification/common/notification';
|
||||||
import { Registry } from 'vs/platform/registry/common/platform';
|
import { Registry } from 'vs/platform/registry/common/platform';
|
||||||
|
@ -13,7 +12,6 @@ import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storag
|
||||||
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
|
||||||
import { TelemetryChannelClient } from 'vs/server/common/telemetry';
|
import { TelemetryChannelClient } from 'vs/server/common/telemetry';
|
||||||
import 'vs/workbench/contrib/localizations/browser/localizations.contribution';
|
import 'vs/workbench/contrib/localizations/browser/localizations.contribution';
|
||||||
import { LocalizationsService } from 'vs/workbench/services/localizations/electron-sandbox/localizationsService';
|
|
||||||
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
|
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
|
||||||
|
|
||||||
class TelemetryService extends TelemetryChannelClient {
|
class TelemetryService extends TelemetryChannelClient {
|
||||||
|
@ -60,7 +58,6 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfigurat
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
registerSingleton(ILocalizationsService, LocalizationsService);
|
|
||||||
registerSingleton(ITelemetryService, TelemetryService);
|
registerSingleton(ITelemetryService, TelemetryService);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,33 +4,6 @@
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations';
|
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';
|
import { registerSharedProcessRemoteService } from 'vs/platform/ipc/electron-sandbox/services';
|
||||||
|
|
||||||
registerSharedProcessRemoteService(ILocalizationsService, 'localizations', { supportsDelayedInstantiation: true });
|
registerSharedProcessRemoteService(ILocalizationsService, 'localizations', { supportsDelayedInstantiation: true });
|
||||||
>>>>>>> 801aed93200dc0ccf325a09089c911e8e2b612d0
|
|
||||||
|
|
Loading…
Reference in New Issue