diff --git a/src/commands/editContainer/editContainer.ts b/src/commands/editContainer/editContainer.ts index 8345918f..cc33bdf7 100644 --- a/src/commands/editContainer/editContainer.ts +++ b/src/commands/editContainer/editContainer.ts @@ -52,7 +52,7 @@ export async function editContainer(context: IActionContext, node?: ContainersIt managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp), containerApp, containersIdx, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/editContainer/editContainerImage/editContainerImage.ts b/src/commands/editContainer/editContainerImage/editContainerImage.ts index e5ef286f..38e88496 100644 --- a/src/commands/editContainer/editContainerImage/editContainerImage.ts +++ b/src/commands/editContainer/editContainerImage/editContainerImage.ts @@ -45,7 +45,7 @@ export async function editContainerImage(context: IActionContext, node?: ImageIt managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp), containerApp, containersIdx: item.containersIdx, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/environmentVariables/addEnvironmentVariable/addEnvironmentVariable.ts b/src/commands/environmentVariables/addEnvironmentVariable/addEnvironmentVariable.ts index deb4f431..dc2bce5b 100644 --- a/src/commands/environmentVariables/addEnvironmentVariable/addEnvironmentVariable.ts +++ b/src/commands/environmentVariables/addEnvironmentVariable/addEnvironmentVariable.ts @@ -38,7 +38,7 @@ export async function addEnvironmentVariable(context: IActionContext, node?: Env managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp), containerApp, containersIdx: item.containersIdx, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/environmentVariables/deleteEnvironmentVariable/deleteEnvironmentVariable.ts b/src/commands/environmentVariables/deleteEnvironmentVariable/deleteEnvironmentVariable.ts index e904876d..94c1cf78 100644 --- a/src/commands/environmentVariables/deleteEnvironmentVariable/deleteEnvironmentVariable.ts +++ b/src/commands/environmentVariables/deleteEnvironmentVariable/deleteEnvironmentVariable.ts @@ -37,7 +37,7 @@ export async function deleteEnvironmentVariable(context: IActionContext, node?: containerApp, containersIdx: item.containersIdx, environmentVariable: item.envVariable, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/environmentVariables/editEnvironmentVariable/editEnvironmentVariableName.ts b/src/commands/environmentVariables/editEnvironmentVariable/editEnvironmentVariableName.ts index d85fdf62..bd9dcd12 100644 --- a/src/commands/environmentVariables/editEnvironmentVariable/editEnvironmentVariableName.ts +++ b/src/commands/environmentVariables/editEnvironmentVariable/editEnvironmentVariableName.ts @@ -38,7 +38,7 @@ export async function editEnvironmentVariableName(context: IActionContext, node? containerApp, containersIdx: item.containersIdx, environmentVariable: item.envVariable, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/environmentVariables/editEnvironmentVariables/editEnvironmentVariables.ts b/src/commands/environmentVariables/editEnvironmentVariables/editEnvironmentVariables.ts index 3e03b1b1..fbef603c 100644 --- a/src/commands/environmentVariables/editEnvironmentVariables/editEnvironmentVariables.ts +++ b/src/commands/environmentVariables/editEnvironmentVariables/editEnvironmentVariables.ts @@ -37,7 +37,7 @@ export async function editEnvironmentVariables(context: IActionContext, node?: E managedEnvironment: await getManagedEnvironmentFromContainerApp({ ...context, ...subscriptionContext }, containerApp), containerApp, containersIdx: item.containersIdx, - isDraftCommand: true, + isDrafting: true, }; wizardContext.telemetry.properties.revisionMode = containerApp.revisionsMode; diff --git a/src/commands/image/imageSource/containerRegistry/ContainerRegistryImageConfigureStep.ts b/src/commands/image/imageSource/containerRegistry/ContainerRegistryImageConfigureStep.ts index ee03909d..eb357c19 100644 --- a/src/commands/image/imageSource/containerRegistry/ContainerRegistryImageConfigureStep.ts +++ b/src/commands/image/imageSource/containerRegistry/ContainerRegistryImageConfigureStep.ts @@ -40,7 +40,7 @@ export class ContainerRegistryImageConfigureStep): Promise | undefined> { - if (context.isDraftCommand) { + if (context.isDrafting) { // Skip any steps that would attempt to update the container app directly while we're in a drafting mode return undefined; } diff --git a/src/commands/revisionDraft/RevisionDraftContext.ts b/src/commands/revisionDraft/RevisionDraftContext.ts index 4bae948b..c88b2649 100644 --- a/src/commands/revisionDraft/RevisionDraftContext.ts +++ b/src/commands/revisionDraft/RevisionDraftContext.ts @@ -6,6 +6,6 @@ import { type IContainerAppContext } from "../IContainerAppContext"; export interface RevisionDraftContext extends IContainerAppContext { - isDraftCommand?: boolean; + isDrafting?: boolean; shouldDeployRevisionDraft?: boolean; } diff --git a/src/commands/scaling/scaleRange/editScaleRange.ts b/src/commands/scaling/scaleRange/editScaleRange.ts index 170f70c8..bed127a5 100644 --- a/src/commands/scaling/scaleRange/editScaleRange.ts +++ b/src/commands/scaling/scaleRange/editScaleRange.ts @@ -43,7 +43,7 @@ export async function editScaleRange(context: IActionContext, node?: ScaleItem): subscription, scaleMinRange: scale.minReplicas ?? 0, scaleMaxRange: scale.maxReplicas ?? 0, - isDraftCommand: true, + isDrafting: true, }; const wizard: AzureWizard = new AzureWizard(wizardContext, { diff --git a/src/commands/scaling/scaleRule/addScaleRule/addScaleRule.ts b/src/commands/scaling/scaleRule/addScaleRule/addScaleRule.ts index 47f71afb..852be3cd 100644 --- a/src/commands/scaling/scaleRule/addScaleRule/addScaleRule.ts +++ b/src/commands/scaling/scaleRule/addScaleRule/addScaleRule.ts @@ -30,7 +30,7 @@ export async function addScaleRule(context: IActionContext, node?: ScaleRuleGrou containerApp, subscription, parentResourceName: nonNullProp(parentResource, 'name'), - isDraftCommand: true, + isDrafting: true, }; const wizard: AzureWizard = new AzureWizard(wizardContext, { diff --git a/src/commands/scaling/scaleRule/deleteScaleRule/deleteScaleRule.ts b/src/commands/scaling/scaleRule/deleteScaleRule/deleteScaleRule.ts index c73f99b5..0c0dd0fb 100644 --- a/src/commands/scaling/scaleRule/deleteScaleRule/deleteScaleRule.ts +++ b/src/commands/scaling/scaleRule/deleteScaleRule/deleteScaleRule.ts @@ -28,7 +28,7 @@ export async function deleteScaleRule(context: IActionContext, node?: ScaleRuleI containerApp, subscription, scaleRule: item.scaleRule, - isDraftCommand: true, + isDrafting: true, } const confirmMessage = localize('confirmMessage', 'Are you sure you want to delete this scale rule?');