@microsoft/vscode-azext-azureutils
Advanced tools
Comparing version
@@ -442,3 +442,3 @@ /*--------------------------------------------------------------------------------------------- | ||
* */ | ||
public constructor(roles: () => Role[] | undefined); | ||
public constructor(roles: () => Role[] | undefined, options?: { priority?: number }); | ||
@@ -445,0 +445,0 @@ public execute(wizardContext: T, progress: Progress<{ message?: string; increment?: number }>): Promise<void>; |
@@ -55,4 +55,4 @@ "use strict"; | ||
wizardContext.resourceGroup = (yield wizardContext.ui.showQuickPick(this.getQuickPicks(wizardContext), options)).data; | ||
if (wizardContext.resourceGroup && !LocationListStep_1.LocationListStep.hasLocation(wizardContext)) { | ||
yield LocationListStep_1.LocationListStep.setLocation(wizardContext, (0, vscode_azext_utils_1.nonNullProp)(wizardContext.resourceGroup, 'location')); | ||
if (wizardContext.resourceGroup && !LocationListStep_1.LocationListStep.hasLocation(wizardContext) && !LocationListStep_1.LocationListStep.getAutoSelectLocation(wizardContext)) { | ||
yield LocationListStep_1.LocationListStep.setAutoSelectLocation(wizardContext, (0, vscode_azext_utils_1.nonNullProp)(wizardContext.resourceGroup, 'location')); | ||
} | ||
@@ -59,0 +59,0 @@ }); |
@@ -31,6 +31,7 @@ "use strict"; | ||
} | ||
constructor(roles) { | ||
constructor(roles, options) { | ||
var _a; | ||
super(); | ||
this.priority = 900; | ||
this.roles = roles; | ||
this.priority = (_a = options === null || options === void 0 ? void 0 : options.priority) !== null && _a !== void 0 ? _a : 900; | ||
} | ||
@@ -65,8 +66,8 @@ addExecuteSteps(_context) { | ||
} | ||
constructor(role) { | ||
constructor(role, options) { | ||
super(); | ||
this.role = role; | ||
this.stepName = 'RoleAssignmentExecuteStep'; | ||
this.priority = 901; | ||
this._retries = 0; | ||
this.priority = (options === null || options === void 0 ? void 0 : options.priority) ? options.priority + 1 : 901; | ||
} | ||
@@ -73,0 +74,0 @@ executeCore(wizardContext, progress) { |
{ | ||
"name": "@microsoft/vscode-azext-azureutils", | ||
"author": "Microsoft Corporation", | ||
"version": "3.4.0", | ||
"version": "3.4.2", | ||
"description": "Common Azure utils for developing Azure extensions for VS Code", | ||
@@ -6,0 +6,0 @@ "tags": [ |
347583
0.1%3237
0.03%