mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
fix(lib/vscode): restore localizatizons support
This commit is contained in:
parent
2f6d256745
commit
8ffb87dbc9
@ -12,6 +12,7 @@ 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 'vs/workbench/services/localizations/browser/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 {
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
/*---------------------------------------------------------------------------------------------
|
||||||
|
* Copyright (c) Coder Technologies. All rights reserved.
|
||||||
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
import { ProxyChannel } from 'vs/base/parts/ipc/common/ipc';
|
||||||
|
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
|
||||||
|
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations';
|
||||||
|
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService';
|
||||||
|
|
||||||
|
// @ts-ignore: interface is implemented via proxy
|
||||||
|
export class LocalizationsService implements ILocalizationsService {
|
||||||
|
|
||||||
|
declare readonly _serviceBrand: undefined;
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
|
||||||
|
) {
|
||||||
|
return ProxyChannel.toService<ILocalizationsService>(remoteAgentService.getConnection()!.getChannel('localizations'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
registerSingleton(ILocalizationsService, LocalizationsService, true);
|
Loading…
Reference in New Issue
Block a user