diff --git a/utils/hostapi.d.ts b/utils/hostapi.d.ts index 1602d9772a..4c3bb1845d 100644 --- a/utils/hostapi.d.ts +++ b/utils/hostapi.d.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import type { AzExtResourceType } from '@microsoft/vscode-azureresources-api'; +import type { AzExtResourceType, AzureSubscription } from '@microsoft/vscode-azureresources-api'; import type * as vscode from 'vscode'; import type { AbstractAzExtTreeItem, AzExtParentTreeItem, AzExtTreeDataProvider, AzExtTreeItem, IAzureQuickPickOptions, ISubscriptionContext, ITreeItemPickerContext, SealedAzExtTreeItem } from './index'; // This must remain `import type` or else a circular reference will result @@ -61,6 +61,13 @@ export interface AzureHostExtensionApi { */ registerActivity(activity: Activity): Promise; + /** + * + * @param filter Whether to filter the list returned, according to the list returned + * by `getTenantFilters()` and `getSubscriptionFilters()`. + */ + getSubscriptions: (filter: boolean) => Promise; + //#region Deprecated things that will be removed soon /** diff --git a/utils/package-lock.json b/utils/package-lock.json index 4fdc8bf92c..5384817a59 100644 --- a/utils/package-lock.json +++ b/utils/package-lock.json @@ -1,12 +1,12 @@ { "name": "@microsoft/vscode-azext-utils", - "version": "2.3.1", + "version": "2.4.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@microsoft/vscode-azext-utils", - "version": "2.3.1", + "version": "2.4.0", "license": "MIT", "dependencies": { "@microsoft/vscode-azureresources-api": "^2.0.4", diff --git a/utils/package.json b/utils/package.json index 0f71410524..e7bfb4234b 100644 --- a/utils/package.json +++ b/utils/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/vscode-azext-utils", "author": "Microsoft Corporation", - "version": "2.3.1", + "version": "2.4.0", "description": "Common UI tools for developing Azure extensions for VS Code", "tags": [ "azure",