@@ -8,7 +8,7 @@ import { type Identity } from '@azure/arm-resources';
88import { BlobServiceClient } from '@azure/storage-blob' ;
99import { ParsedSite , WebsiteOS , type CustomLocation , type IAppServiceWizardContext } from '@microsoft/vscode-azext-azureappservice' ;
1010import { LocationListStep } from '@microsoft/vscode-azext-azureutils' ;
11- import { AzureWizardExecuteStep , maskUserInfo , parseError , randomUtils } from '@microsoft/vscode-azext-utils' ;
11+ import { AzureWizardExecuteStepWithActivityOutput , maskUserInfo , parseError , randomUtils } from '@microsoft/vscode-azext-utils' ;
1212import { type AppResource } from '@microsoft/vscode-azext-utils/hostapi' ;
1313import { type Progress } from 'vscode' ;
1414import { FuncVersion , getMajorVersion } from '../../FuncVersion' ;
@@ -22,11 +22,11 @@ import { nonNullProp } from '../../utils/nonNull';
2222import { getStorageConnectionString } from '../appSettings/connectionSettings/getLocalConnectionSetting' ;
2323import { enableFileLogging } from '../logstream/enableFileLogging' ;
2424import { type FullFunctionAppStack , type IFlexFunctionAppWizardContext , type IFunctionAppWizardContext } from './IFunctionAppWizardContext' ;
25- import { showSiteCreated } from './showSiteCreated' ;
2625import { type Sku } from './stacks/models/FlexSkuModel' ;
2726import { type FunctionAppRuntimeSettings , } from './stacks/models/FunctionAppStackModel' ;
2827
29- export class FunctionAppCreateStep extends AzureWizardExecuteStep < IFunctionAppWizardContext > {
28+ export class FunctionAppCreateStep extends AzureWizardExecuteStepWithActivityOutput < IFunctionAppWizardContext > {
29+ stepName : string = 'createFunctionAppStep' ;
3030 public priority : number = 1000 ;
3131
3232 public async execute ( context : IFlexFunctionAppWizardContext , progress : Progress < { message ?: string ; increment ?: number } > ) : Promise < void > {
@@ -39,8 +39,7 @@ export class FunctionAppCreateStep extends AzureWizardExecuteStep<IFunctionAppWi
3939 context . telemetry . properties . newSiteMinorVersion = stack . minorVersion . value ;
4040 context . telemetry . properties . planSkuTier = context . plan ?. sku ?. tier ;
4141
42- const message : string = localize ( 'creatingNewApp' , 'Creating new function app "{0}"...' , context . newSiteName ) ;
43- ext . outputChannel . appendLog ( message ) ;
42+ const message : string = localize ( 'creatingFuncApp' , 'Creating function app "{0}"...' , context . newSiteName ) ;
4443 progress . report ( { message } ) ;
4544
4645 const siteName : string = nonNullProp ( context , 'newSiteName' ) ;
@@ -58,7 +57,6 @@ export class FunctionAppCreateStep extends AzureWizardExecuteStep<IFunctionAppWi
5857 context . telemetry . properties . fileLoggingError = maskUserInfo ( parseError ( error ) . message , [ ] ) ;
5958 }
6059 }
61- showSiteCreated ( site , context ) ;
6260 }
6361
6462 public shouldExecute ( context : IFunctionAppWizardContext ) : boolean {
@@ -249,6 +247,23 @@ export class FunctionAppCreateStep extends AzureWizardExecuteStep<IFunctionAppWi
249247
250248 return result ;
251249 }
250+
251+ protected getTreeItemLabel ( context : IFunctionAppWizardContext ) : string {
252+ const siteName : string = nonNullProp ( context , 'newSiteName' ) ;
253+ return localize ( 'creatingNewApp' , 'Create function app "{0}"' , siteName ) ;
254+ }
255+ protected getOutputLogSuccess ( context : IFunctionAppWizardContext ) : string {
256+ const siteName : string = nonNullProp ( context , 'newSiteName' ) ;
257+ return localize ( 'createdNewApp' , 'Successfully created function app "{0}".' , siteName ) ;
258+ }
259+ protected getOutputLogFail ( context : IFunctionAppWizardContext ) : string {
260+ const siteName : string = nonNullProp ( context , 'newSiteName' ) ;
261+ return localize ( 'failedToCreateNewApp' , 'Failed to create function app "{0}".' , siteName ) ;
262+ }
263+ protected getOutputLogProgress ( context : IFunctionAppWizardContext ) : string {
264+ const siteName : string = nonNullProp ( context , 'newSiteName' ) ;
265+ return localize ( 'creatingNewApp' , 'Creating function app "{0}"...' , siteName ) ;
266+ }
252267}
253268
254269function getNewFileShareName ( siteName : string ) : string {
0 commit comments