Path: blob/main/src/vs/workbench/api/worker/extHost.worker.services.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { SyncDescriptor } from '../../../platform/instantiation/common/descriptors.js';6import { InstantiationType, registerSingleton } from '../../../platform/instantiation/common/extensions.js';7import { ILogService } from '../../../platform/log/common/log.js';8import { ExtHostAuthentication, IExtHostAuthentication } from '../common/extHostAuthentication.js';9import { IExtHostExtensionService } from '../common/extHostExtensionService.js';10import { ExtHostLogService } from '../common/extHostLogService.js';11import { ExtensionStoragePaths, IExtensionStoragePaths } from '../common/extHostStoragePaths.js';12import { ExtHostTelemetry, IExtHostTelemetry } from '../common/extHostTelemetry.js';13import { ExtHostExtensionService } from './extHostExtensionService.js';1415// #########################################################################16// ### ###17// ### !!! PLEASE ADD COMMON IMPORTS INTO extHost.common.services.ts !!! ###18// ### ###19// #########################################################################2021registerSingleton(ILogService, new SyncDescriptor(ExtHostLogService, [true], true));22registerSingleton(IExtHostAuthentication, ExtHostAuthentication, InstantiationType.Eager);23registerSingleton(IExtHostExtensionService, ExtHostExtensionService, InstantiationType.Eager);24registerSingleton(IExtensionStoragePaths, ExtensionStoragePaths, InstantiationType.Eager);25registerSingleton(IExtHostTelemetry, new SyncDescriptor(ExtHostTelemetry, [true], true));262728