UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

76 lines (75 loc) 2.96 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? (desc = Object.getOwnPropertyDescriptor(target, key)) : desc, d; if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function') r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if ((d = decorators[i])) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); }; }; import { URI } from '@sussudio/base/common/uri.mjs'; import { INativeEnvironmentService } from '../../environment/common/environment.mjs'; import { IExtensionsProfileScannerService } from '../common/extensionsProfileScannerService.mjs'; import { NativeExtensionsScannerService } from '../common/extensionsScannerService.mjs'; import { IFileService } from '../../files/common/files.mjs'; import { IInstantiationService } from '../../instantiation/common/instantiation.mjs'; import { ILogService } from '../../log/common/log.mjs'; import { IProductService } from '../../product/common/productService.mjs'; import { IUriIdentityService } from '../../uriIdentity/common/uriIdentity.mjs'; import { IUserDataProfilesService } from '../../userDataProfile/common/userDataProfile.mjs'; let ExtensionsScannerService = class ExtensionsScannerService extends NativeExtensionsScannerService { constructor( userDataProfilesService, extensionsProfileScannerService, fileService, logService, environmentService, productService, uriIdentityService, instantiationService, ) { super( URI.file(environmentService.builtinExtensionsPath), URI.file(environmentService.extensionsPath), environmentService.userHome, URI.file(environmentService.userDataPath), userDataProfilesService, extensionsProfileScannerService, fileService, logService, environmentService, productService, uriIdentityService, instantiationService, ); } }; ExtensionsScannerService = __decorate( [ __param(0, IUserDataProfilesService), __param(1, IExtensionsProfileScannerService), __param(2, IFileService), __param(3, ILogService), __param(4, INativeEnvironmentService), __param(5, IProductService), __param(6, IUriIdentityService), __param(7, IInstantiationService), ], ExtensionsScannerService, ); export { ExtensionsScannerService };