import { InputBoxOptions } from "vscode" ; import { AzureWizardPromptStep } from "vscode-azureextensionui" ; import { localize } from "../../../localize" ; import { IJavaProjectWizardContext } from "./IJavaProjectWizardContext" ; export class JavaProjectVersionStep extends AzureWizardPromptStep < IJavaProjectWizardContext > { public async prompt ( context ) { const options = { placeHolder : localize ( 'versionPlaceHolder' , 'Version' ) , prompt : localize ( 'versionPrompt' , 'Provide a version for your project' ) , value : '1.0-SNAPSHOT' } ; context . javaProjectVersion = await context . ui . showInputBox ( options ) ; } public shouldPrompt ( context ) { return ! context . javaProjectVersion ; } }