import { AzureWizardPromptStep , IAzureQuickPickItem } from 'vscode-azureextensionui' ; import { localize } from '../../localize' ; import { IBindingWizardContext } from './IBindingWizardContext' ; export class BindingDirectionStep extends AzureWizardPromptStep < IBindingWizardContext > { public hideStepCount : boolean = true ; public async prompt ( context ) { const placeHolder = localize ( 'selectDirection' , 'Select binding direction' ) ; const picks = [ { label : 'in' , data : 'in' } , { label : 'out' , data : 'out' } ] ; context . bindingDirection = ( await context . ui . showQuickPick ( picks , { placeHolder } ) ) . data ; } public shouldPrompt ( context ) { return ! context . bindingDirection ; } }