|
5 | 5 |
|
6 | 6 | import { type ResourceManagementClient } from '@azure/arm-resources'; |
7 | 7 | import { type AzExtClientContext, createAzureClient, type ILocationWizardContext, type IResourceGroupWizardContext, LocationListStep, parseClientContext, ResourceGroupCreateStep, ResourceGroupListStep, VerifyProvidersStep } from "@microsoft/vscode-azext-azureutils"; |
8 | | -import { AzureWizard, AzureWizardExecuteStepWithActivityOutput, AzureWizardPromptStep, createSubscriptionContext, type ExecuteActivityContext, type IActionContext, type IAzureQuickPickItem, type ISubscriptionActionContext, subscriptionExperience } from "@microsoft/vscode-azext-utils"; |
| 8 | +import { AzureWizard, AzureWizardExecuteStepWithActivityOutput, AzureWizardPromptStep, createSubscriptionContext, type ExecuteActivityContext, type ExecuteActivityOutput, type IActionContext, type IAzureQuickPickItem, type ISubscriptionActionContext, subscriptionExperience } from "@microsoft/vscode-azext-utils"; |
9 | 9 | import { type AzureSubscription } from "@microsoft/vscode-azureresources-api"; |
10 | 10 | import { type Progress } from "vscode"; |
11 | 11 | import { DurableTaskProvider, DurableTaskSchedulersResourceType } from "../../constants"; |
@@ -67,6 +67,14 @@ class SchedulerCreationStep extends AzureWizardExecuteStepWithActivityOutput<ICr |
67 | 67 | protected getOutputLogSuccess = (context: ICreateSchedulerContext) => localize('createSchedulerSuccess', 'Successfully created Durable Task Scheduler "{0}".', context.schedulerName); |
68 | 68 | protected getOutputLogFail = (context: ICreateSchedulerContext) => localize('createSchedulerFail', 'Failed to create Durable Task Scheduler "{0}".', context.schedulerName); |
69 | 69 |
|
| 70 | + public createProgressOutput(context: ICreateSchedulerContext): ExecuteActivityOutput { |
| 71 | + const output = super.createProgressOutput(context); |
| 72 | + if (output.item) { |
| 73 | + output.item.description = localize('schedulerProgressDescription', 'This may take a while...'); |
| 74 | + } |
| 75 | + return output; |
| 76 | + } |
| 77 | + |
70 | 78 | constructor(private readonly schedulerClient: DurableTaskSchedulerClient) { |
71 | 79 | super(); |
72 | 80 | } |
|
0 commit comments