mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-27 05:37:45 +00:00
move extensionValidator to common
This commit is contained in:
@@ -46,6 +46,8 @@ import { FileService } from 'vs/platform/files/common/fileService';
|
||||
import { IFileService } from 'vs/platform/files/common/files';
|
||||
import { DiskFileSystemProvider } from 'vs/platform/files/node/diskFileSystemProvider';
|
||||
import { DisposableStore } from 'vs/base/common/lifecycle';
|
||||
import { IProductService } from 'vs/platform/product/common/product';
|
||||
import { ProductService } from 'vs/platform/product/node/productService';
|
||||
|
||||
const notFound = (id: string) => localize('notFound', "Extension '{0}' not found.", id);
|
||||
const notInstalled = (id: string) => localize('notInstalled', "Extension '{0}' is not installed.", id);
|
||||
@@ -301,6 +303,7 @@ export async function main(argv: ParsedArgs): Promise<void> {
|
||||
services.set(ILogService, logService);
|
||||
services.set(IConfigurationService, configurationService);
|
||||
services.set(IStateService, new SyncDescriptor(StateService));
|
||||
services.set(IProductService, new SyncDescriptor(ProductService));
|
||||
|
||||
// Files
|
||||
const fileService = new FileService(logService);
|
||||
|
||||
Reference in New Issue
Block a user