Skip to content

Commit 1cb3b8f

Browse files
committed
Add a description to the creation progress
1 parent 3e3b834 commit 1cb3b8f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/commands/durableTaskScheduler/createScheduler.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { type ResourceManagementClient } from '@azure/arm-resources';
77
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";
99
import { type AzureSubscription } from "@microsoft/vscode-azureresources-api";
1010
import { type Progress } from "vscode";
1111
import { DurableTaskProvider, DurableTaskSchedulersResourceType } from "../../constants";
@@ -67,6 +67,14 @@ class SchedulerCreationStep extends AzureWizardExecuteStepWithActivityOutput<ICr
6767
protected getOutputLogSuccess = (context: ICreateSchedulerContext) => localize('createSchedulerSuccess', 'Successfully created Durable Task Scheduler "{0}".', context.schedulerName);
6868
protected getOutputLogFail = (context: ICreateSchedulerContext) => localize('createSchedulerFail', 'Failed to create Durable Task Scheduler "{0}".', context.schedulerName);
6969

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+
7078
constructor(private readonly schedulerClient: DurableTaskSchedulerClient) {
7179
super();
7280
}

0 commit comments

Comments
 (0)