diff --git a/utils/index.d.ts b/utils/index.d.ts index 20597bdb2d..80f5200ffc 100644 --- a/utils/index.d.ts +++ b/utils/index.d.ts @@ -1733,7 +1733,7 @@ export interface PickExperienceContext extends IActionContext { * @param context The action context * @param tdp Azure resource tree data provider to perform the pick experience on */ -export declare function subscriptionExperience(context: IActionContext, tdp: TreeDataProvider, options?: { selectSubscriptionId?: string, showLoadingPrompt?: boolean }): Promise; +export declare function subscriptionExperience(context: IActionContext, tdp: TreeDataProvider, options?: { selectBySubscriptionId?: string, showLoadingPrompt?: boolean }): Promise; /** * Prompts the user to pick an Azure resource using a wizard comprised of quick pick steps. @@ -1877,7 +1877,7 @@ export declare interface SkipIfOneQuickPickOptions extends GenericQuickPickOptio } export declare interface AzureSubscriptionQuickPickOptions extends GenericQuickPickOptions { - selectSubscriptionId?: string; + selectBySubscriptionId?: string; } export declare abstract class GenericQuickPickStep extends AzureWizardPromptStep { diff --git a/utils/src/pickTreeItem/experiences/subscriptionExperience.ts b/utils/src/pickTreeItem/experiences/subscriptionExperience.ts index 1b06f46354..4f6c5b690a 100644 --- a/utils/src/pickTreeItem/experiences/subscriptionExperience.ts +++ b/utils/src/pickTreeItem/experiences/subscriptionExperience.ts @@ -15,7 +15,7 @@ import { ResourceGroupsItem } from '../quickPickAzureResource/tempTypes'; export async function subscriptionExperience( context: types.IActionContext, tdp: vscode.TreeDataProvider, - options?: { selectSubscriptionId?: string, showLoadingPrompt?: boolean } + options?: { selectBySubscriptionId?: string, showLoadingPrompt?: boolean } ): Promise { const wizardContext = { ...context } as PickSubscriptionWizardContext; @@ -23,7 +23,7 @@ export async function subscriptionExperience( const wizard = new AzureWizard(wizardContext, { hideStepCount: true, - promptSteps: [new QuickPickAzureSubscriptionStep(tdp, { selectSubscriptionId: options?.selectSubscriptionId })], + promptSteps: [new QuickPickAzureSubscriptionStep(tdp, { selectBySubscriptionId: options?.selectBySubscriptionId })], showLoadingPrompt: options?.showLoadingPrompt ?? true, }); diff --git a/utils/src/pickTreeItem/quickPickAzureResource/QuickPickAzureSubscriptionStep.ts b/utils/src/pickTreeItem/quickPickAzureResource/QuickPickAzureSubscriptionStep.ts index 1d44bae07a..6bd3d29cb3 100644 --- a/utils/src/pickTreeItem/quickPickAzureResource/QuickPickAzureSubscriptionStep.ts +++ b/utils/src/pickTreeItem/quickPickAzureResource/QuickPickAzureSubscriptionStep.ts @@ -21,7 +21,7 @@ export class QuickPickAzureSubscriptionStep extends GenericQuickPickStepWithComm noPicksMessage: vscode.l10n.t('No subscriptions found'), }); - this.subscriptionId = options?.selectSubscriptionId; + this.subscriptionId = options?.selectBySubscriptionId; } protected readonly pickFilter = new AzureSubscriptionPickFilter();