Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/vs/platform/extensionManagement/electron-sandbox/extensionsScannerService.ts')
-rw-r--r--src/vs/platform/extensionManagement/electron-sandbox/extensionsScannerService.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/vs/platform/extensionManagement/electron-sandbox/extensionsScannerService.ts b/src/vs/platform/extensionManagement/electron-sandbox/extensionsScannerService.ts
new file mode 100644
index 00000000000..7914d9aff79
--- /dev/null
+++ b/src/vs/platform/extensionManagement/electron-sandbox/extensionsScannerService.ts
@@ -0,0 +1,32 @@
+/*---------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All rights reserved.
+ * Licensed under the MIT License. See License.txt in the project root for license information.
+ *--------------------------------------------------------------------------------------------*/
+
+import { URI } from 'vs/base/common/uri';
+import { INativeEnvironmentService } from 'vs/platform/environment/common/environment';
+import { IExtensionsScannerService, NativeExtensionsScannerService, } from 'vs/platform/extensionManagement/common/extensionsScannerService';
+import { IFileService } from 'vs/platform/files/common/files';
+import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
+import { ILogService } from 'vs/platform/log/common/log';
+import { IProductService } from 'vs/platform/product/common/productService';
+
+export class ExtensionsScannerService extends NativeExtensionsScannerService implements IExtensionsScannerService {
+
+ constructor(
+ @IFileService fileService: IFileService,
+ @ILogService logService: ILogService,
+ @INativeEnvironmentService environmentService: INativeEnvironmentService,
+ @IProductService productService: IProductService,
+ ) {
+ super(
+ URI.file(environmentService.builtinExtensionsPath),
+ URI.file(environmentService.extensionsPath),
+ environmentService.userHome,
+ URI.file(environmentService.userDataPath),
+ fileService, logService, environmentService, productService);
+ }
+
+}
+
+registerSingleton(IExtensionsScannerService, ExtensionsScannerService);