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:
authorSandeep Somavarapu <sasomava@microsoft.com>2022-01-23 01:33:34 +0300
committerSandeep Somavarapu <sasomava@microsoft.com>2022-01-23 01:33:55 +0300
commit9b75bd1f813e683bf46897d85387089ec083fb24 (patch)
treee36f42d287ad903882dfff954bd09a7be2f5ee59 /src/vs/workbench/contrib/extensions/common
parentface76358f8418cc4612aedf84b88ca3f7d8afdf (diff)
#139015 more refactorings
- use getExtensions for querying by id or name - introduce getExtensions in IExtensionsWorkbenchService
Diffstat (limited to 'src/vs/workbench/contrib/extensions/common')
-rw-r--r--src/vs/workbench/contrib/extensions/common/extensions.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/extensions/common/extensions.ts b/src/vs/workbench/contrib/extensions/common/extensions.ts
index 8607ce88564..135ba06042a 100644
--- a/src/vs/workbench/contrib/extensions/common/extensions.ts
+++ b/src/vs/workbench/contrib/extensions/common/extensions.ts
@@ -6,7 +6,7 @@
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import { Event } from 'vs/base/common/event';
import { IPager } from 'vs/base/common/paging';
-import { IQueryOptions, ILocalExtension, IGalleryExtension, IExtensionIdentifier, InstallOptions, InstallVSIXOptions } from 'vs/platform/extensionManagement/common/extensionManagement';
+import { IQueryOptions, ILocalExtension, IGalleryExtension, IExtensionIdentifier, InstallOptions, InstallVSIXOptions, IExtensionInfo, IExtensionQueryOptions } from 'vs/platform/extensionManagement/common/extensionManagement';
import { EnablementState, IExtensionManagementServer } from 'vs/workbench/services/extensionManagement/common/extensionManagement';
import { CancellationToken } from 'vs/base/common/cancellation';
import { Disposable } from 'vs/base/common/lifecycle';
@@ -94,6 +94,8 @@ export interface IExtensionsWorkbenchService {
queryLocal(server?: IExtensionManagementServer): Promise<IExtension[]>;
queryGallery(token: CancellationToken): Promise<IPager<IExtension>>;
queryGallery(options: IQueryOptions, token: CancellationToken): Promise<IPager<IExtension>>;
+ getExtensions(extensionInfos: IExtensionInfo[], token: CancellationToken): Promise<IExtension[]>;
+ getExtensions(extensionInfos: IExtensionInfo[], options: IExtensionQueryOptions, token: CancellationToken): Promise<IExtension[]>;
canInstall(extension: IExtension): Promise<boolean>;
install(vsix: URI, installOptions?: InstallVSIXOptions): Promise<IExtension>;
install(extension: IExtension, installOptions?: InstallOptions): Promise<IExtension>;