import { InputBoxOptions } from "vscode" ; import { AzureWizardPromptStep } from "vscode-azureextensionui" ; import { localize } from "../../../localize" ; import { nonNullProp } from "../../../utils/nonNull" ; import { IJavaProjectWizardContext } from "./IJavaProjectWizardContext" ; export class JavaAppNameStep extends AzureWizardPromptStep < IJavaProjectWizardContext > { public async prompt ( context ) { const options = { placeHolder : localize ( 'appNamePlaceHolder' , 'App name' ) , prompt : localize ( 'appNamePrompt' , 'Provide an app name' ) , value : `${ nonNullProp ( context , 'javaArtifactId' ) }-${ Date . now ( ) }` } ; context . javaAppName = await context . ui . showInputBox ( options ) ; } public shouldPrompt ( context ) { return ! context . javaAppName ; } }