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
3296 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 { ExtHostLogService } from '../common/extHostLogService.js';
12
import { ExtensionStoragePaths, IExtensionStoragePaths } from '../common/extHostStoragePaths.js';
13
import { ExtHostTelemetry, IExtHostTelemetry } from '../common/extHostTelemetry.js';
14
import { ExtHostExtensionService } from './extHostExtensionService.js';
15
16
// #########################################################################
17
// ### ###
18
// ### !!! PLEASE ADD COMMON IMPORTS INTO extHost.common.services.ts !!! ###
19
// ### ###
20
// #########################################################################
21
22
registerSingleton(ILogService, new SyncDescriptor(ExtHostLogService, [true], true));
23
registerSingleton(IExtHostAuthentication, ExtHostAuthentication, InstantiationType.Eager);
24
registerSingleton(IExtHostExtensionService, ExtHostExtensionService, InstantiationType.Eager);
25
registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths, InstantiationType.Eager);
26
registerSingleton(IExtHostTelemetry, new SyncDescriptor(ExtHostTelemetry, [true], true));
27
28