@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
64 lines (63 loc) • 2.48 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* 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 { ILogService } from '../../log/common/log.mjs';
import { IUserDataProfilesService } from '../../userDataProfile/common/userDataProfile.mjs';
import { IUriIdentityService } from '../../uriIdentity/common/uriIdentity.mjs';
import { ITelemetryService } from '../../telemetry/common/telemetry.mjs';
import { AbstractExtensionsProfileScannerService } from '../common/extensionsProfileScannerService.mjs';
import { IFileService } from '../../files/common/files.mjs';
import { INativeEnvironmentService } from '../../environment/common/environment.mjs';
import { URI } from '@sussudio/base/common/uri.mjs';
let ExtensionsProfileScannerService = class ExtensionsProfileScannerService extends AbstractExtensionsProfileScannerService {
constructor(
environmentService,
fileService,
userDataProfilesService,
uriIdentityService,
telemetryService,
logService,
) {
super(
URI.file(environmentService.extensionsPath),
fileService,
userDataProfilesService,
uriIdentityService,
telemetryService,
logService,
);
}
};
ExtensionsProfileScannerService = __decorate(
[
__param(0, INativeEnvironmentService),
__param(1, IFileService),
__param(2, IUserDataProfilesService),
__param(3, IUriIdentityService),
__param(4, ITelemetryService),
__param(5, ILogService),
],
ExtensionsProfileScannerService,
);
export { ExtensionsProfileScannerService };