File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed
workbench/services/localizations/electron-sandbox Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,13 @@ import { localize } from 'vs/nls';
5
5
import { Extensions , IConfigurationRegistry } from 'vs/platform/configuration/common/configurationRegistry' ;
6
6
import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
7
7
import { ServiceCollection } from 'vs/platform/instantiation/common/serviceCollection' ;
8
- import { ILocalizationsService } from 'vs/platform/localizations/common/localizations' ;
9
8
import { ILogService } from 'vs/platform/log/common/log' ;
10
9
import { INotificationService , Severity } from 'vs/platform/notification/common/notification' ;
11
10
import { Registry } from 'vs/platform/registry/common/platform' ;
12
11
import { IStorageService , StorageScope , StorageTarget } from 'vs/platform/storage/common/storage' ;
13
12
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
14
13
import { TelemetryChannelClient } from 'vs/server/common/telemetry' ;
15
14
import 'vs/workbench/contrib/localizations/browser/localizations.contribution' ;
16
- import { LocalizationsService } from 'vs/workbench/services/localizations/electron-sandbox/localizationsService' ;
17
15
import { IRemoteAgentService } from 'vs/workbench/services/remote/common/remoteAgentService' ;
18
16
19
17
class TelemetryService extends TelemetryChannelClient {
@@ -60,7 +58,6 @@ Registry.as<IConfigurationRegistry>(Extensions.Configuration).registerConfigurat
60
58
}
61
59
} ) ;
62
60
63
- registerSingleton ( ILocalizationsService , LocalizationsService ) ;
64
61
registerSingleton ( ITelemetryService , TelemetryService ) ;
65
62
66
63
/**
Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import { ILocalizationsService } from 'vs/platform/localizations/common/localizations' ;
7
- < < < << << HEAD
8
- import { registerSingleton } from 'vs/platform/instantiation/common/extensions' ;
9
- import { IRemoteAgentService } from '../../remote/common/remoteAgentService' ;
10
-
11
- // @ts -ignore: interface is implemented via proxy
12
- export class LocalizationsService implements ILocalizationsService {
13
-
14
- declare readonly _serviceBrand : undefined ;
15
-
16
- constructor (
17
- @IRemoteAgentService remoteAgentService : IRemoteAgentService ,
18
- ) {
19
- /*
20
- NOTE@coder:
21
- Upstream, they use the ISharedProcessService.
22
-
23
- We run this on the browser where there is no shared process so it needs to connect
24
- to the localization channel through the remote agent.
25
- 3/16/21 jsjoeio code-asher
26
- */
27
- return ProxyChannel . toService < ILocalizationsService > ( remoteAgentService . getConnection ( ) ! . getChannel ( 'localizations' ) ) ;
28
- }
29
- }
30
-
31
- registerSingleton ( ILocalizationsService , LocalizationsService , true ) ;
32
- = === ===
33
7
import { registerSharedProcessRemoteService } from 'vs/platform/ipc/electron-sandbox/services' ;
34
8
35
9
registerSharedProcessRemoteService ( ILocalizationsService , 'localizations' , { supportsDelayedInstantiation : true } ) ;
36
- > >>> >>> 801 aed93200dc0ccf325a09089c911e8e2b612d0
You can’t perform that action at this time.
0 commit comments