Skip to content

Commit

Permalink
Add listSubscriptions to resourceApi typings (#1703)
Browse files Browse the repository at this point in the history
* Add listSubscriptions to resourceApi

* Amend comment and bump version to breaking
  • Loading branch information
nturinski authored Mar 7, 2024
1 parent 918e12b commit ba5691a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion utils/hostapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -61,6 +61,13 @@ export interface AzureHostExtensionApi {
*/
registerActivity(activity: Activity): Promise<void>;

/**
*
* @param filter Whether to filter the list returned, according to the list returned
* by `getTenantFilters()` and `getSubscriptionFilters()`.
*/
getSubscriptions: (filter: boolean) => Promise<AzureSubscription[]>;

//#region Deprecated things that will be removed soon

/**
Expand Down
4 changes: 2 additions & 2 deletions utils/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit ba5691a

Please sign in to comment.