@@ -9,46 +9,45 @@ import { webProvider } from "../../constants";
99import { ext } from "../../extensionVariables" ;
1010import { ContainerAppItem } from "../../tree/ContainerAppItem" ;
1111import { ManagedEnvironmentItem } from "../../tree/ManagedEnvironmentItem" ;
12- import { createActivityContext } from "../../utils/activityUtils" ;
1312import { localize } from "../../utils/localize" ;
1413import { containerAppEnvironmentExperience } from "../../utils/pickContainerApp" ;
1514import { ImageSourceListStep } from "../imageSource/ImageSourceListStep" ;
1615import { ContainerAppCreateStep } from "./ContainerAppCreateStep" ;
1716import { ContainerAppNameStep } from "./ContainerAppNameStep" ;
1817import { EnableIngressStep } from "./EnableIngressStep" ;
19- import { IContainerAppContext , IContainerAppWithActivityContext } from "./IContainerAppContext " ;
18+ import { ICreateContainerAppContext } from "./ICreateContainerAppContext " ;
2019import { showContainerAppCreated } from "./showContainerAppCreated" ;
2120
22- export async function createContainerApp ( context : IActionContext & Partial < ICreateChildImplContext > & Partial < IContainerAppContext > , node ?: ManagedEnvironmentItem ) : Promise < ContainerAppItem > {
21+ export async function createContainerApp ( context : IActionContext & Partial < ICreateChildImplContext > & Partial < ICreateContainerAppContext > , node ?: ManagedEnvironmentItem ) : Promise < ContainerAppItem > {
2322 node ??= await containerAppEnvironmentExperience ( context , ext . rgApiV2 . resources . azureResourceTreeDataProvider , {
2423 title : localize ( 'createContainerApp' , 'Create Container App' ) ,
2524 } ) ;
2625
27- const wizardContext : IContainerAppWithActivityContext = {
26+ const wizardContext : ICreateContainerAppContext = {
2827 ...context ,
2928 ...createSubscriptionContext ( node . subscription ) ,
3029 subscription : node . subscription ,
3130 managedEnvironmentId : node . managedEnvironment . id ,
32- ...( await createActivityContext ( ) )
31+ // ...(await createActivityContext())
3332 } ;
3433
3534 const title : string = localize ( 'createContainerApp' , 'Create Container App' ) ;
3635
37- const promptSteps : AzureWizardPromptStep < IContainerAppWithActivityContext > [ ] = [
36+ const promptSteps : AzureWizardPromptStep < ICreateContainerAppContext > [ ] = [
3837 new ContainerAppNameStep ( ) ,
3938 new ImageSourceListStep ( ) ,
4039 new EnableIngressStep ( ) ,
4140 ] ;
4241
43- const executeSteps : AzureWizardExecuteStep < IContainerAppWithActivityContext > [ ] = [
42+ const executeSteps : AzureWizardExecuteStep < ICreateContainerAppContext > [ ] = [
4443 new VerifyProvidersStep ( [ webProvider ] ) ,
4544 new ContainerAppCreateStep ( ) ,
4645 ] ;
4746
4847 wizardContext . newResourceGroupName = node . resource . resourceGroup ;
4948 await LocationListStep . setLocation ( wizardContext , nonNullProp ( node . resource , 'location' ) ) ;
5049
51- const wizard : AzureWizard < IContainerAppWithActivityContext > = new AzureWizard ( wizardContext , {
50+ const wizard : AzureWizard < ICreateContainerAppContext > = new AzureWizard ( wizardContext , {
5251 title,
5352 promptSteps,
5453 executeSteps,
@@ -65,7 +64,7 @@ export async function createContainerApp(context: IActionContext & Partial<ICrea
6564 node . managedEnvironment . id ,
6665 localize ( 'creatingContainerApp' , 'Creating Container App "{0}"...' , newContainerAppName ) ,
6766 async ( ) => {
68- wizardContext . activityTitle = localize ( 'createNamedContainerApp' , 'Create Container App "{0}"' , newContainerAppName ) ;
67+ // wizardContext.activityTitle = localize('createNamedContainerApp', 'Create Container App "{0}"', newContainerAppName);
6968 await wizard . execute ( ) ;
7069 } ) ;
7170
0 commit comments