diff --git a/src/commands/accounts/selectSubscriptions.ts b/src/commands/accounts/selectSubscriptions.ts index 95c80305..358405ad 100644 --- a/src/commands/accounts/selectSubscriptions.ts +++ b/src/commands/accounts/selectSubscriptions.ts @@ -10,7 +10,7 @@ import { ext } from "../../extensionVariables"; import { localize } from "../../utils/localize"; import { settingUtils } from "../../utils/settingUtils"; -interface SelectSubscriptionOptions { +export interface SelectSubscriptionOptions { /** * If provided, only subscriptions in this tenant will be shown in the picker. Only subscriptions shown in the picker will be removed or added to the selected subscriptions setting. */ diff --git a/src/commands/registerCommands.ts b/src/commands/registerCommands.ts index 5177a0c3..a59a9e73 100644 --- a/src/commands/registerCommands.ts +++ b/src/commands/registerCommands.ts @@ -12,7 +12,7 @@ import { BranchDataItemWrapper } from '../tree/BranchDataItemWrapper'; import { ResourceGroupsItem } from '../tree/ResourceGroupsItem'; import { GroupingItem } from '../tree/azure/grouping/GroupingItem'; import { logIn } from './accounts/logIn'; -import { selectSubscriptions } from './accounts/selectSubscriptions'; +import { SelectSubscriptionOptions, selectSubscriptions } from './accounts/selectSubscriptions'; import { clearActivities } from './activities/clearActivities'; import { maintainCloudShellConnection } from './cloudShell'; import { createResource } from './createResource'; @@ -67,7 +67,7 @@ export function registerCommands(): void { registerCommand('azureResourceGroups.unfocusGroup', unfocusGroup); registerCommand('azureResourceGroups.logIn', (context: IActionContext) => logIn(context)); - registerCommand('azureResourceGroups.selectSubscriptions', (context: IActionContext) => selectSubscriptions(context)); + registerCommand('azureResourceGroups.selectSubscriptions', (context: IActionContext, options: SelectSubscriptionOptions) => selectSubscriptions(context, options)); registerCommand('azureResourceGroups.signInToTenant', async () => signInToTenant(await ext.subscriptionProviderFactory())); registerCommand('azureResourceGroups.createResourceGroup', createResourceGroup);