Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/workbench/api/worker/extHost.worker.services.ts
5221 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import { SyncDescriptor } from '../../../platform/instantiation/common/descriptors.js';
7
import { InstantiationType, registerSingleton } from '../../../platform/instantiation/common/extensions.js';
8
import { ILogService } from '../../../platform/log/common/log.js';
9
import { ExtHostAuthentication, IExtHostAuthentication } from '../common/extHostAuthentication.js';
10
import { IExtHostExtensionService } from '../common/extHostExtensionService.js';
11
import { IExtHostHooks } from '../common/extHostHooks.js';
12
import { ExtHostLogService } from '../common/extHostLogService.js';
13
import { ExtensionStoragePaths, IExtensionStoragePaths } from '../common/extHostStoragePaths.js';
14
import { ExtHostTelemetry, IExtHostTelemetry } from '../common/extHostTelemetry.js';
15
import { ExtHostExtensionService } from './extHostExtensionService.js';
16
import { WorkerExtHostHooks } from './extHostHooksWorker.js';
17
18
// #########################################################################
19
// ### ###
20
// ### !!! PLEASE ADD COMMON IMPORTS INTO extHost.common.services.ts !!! ###
21
// ### ###
22
// #########################################################################
23
24
registerSingleton(ILogService, new SyncDescriptor(ExtHostLogService, [true], true));
25
registerSingleton(IExtHostAuthentication, ExtHostAuthentication, InstantiationType.Eager);
26
registerSingleton(IExtHostExtensionService, ExtHostExtensionService, InstantiationType.Eager);
27
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths, InstantiationType.Eager);
28
registerSingleton(IExtHostTelemetry, new SyncDescriptor(ExtHostTelemetry, [true], true));
29
registerSingleton(IExtHostHooks, WorkerExtHostHooks, InstantiationType.Eager);
30
31