import { AzureWizardPromptStep , IAzureQuickPickItem } from 'vscode-azureextensionui' ; import { localize } from '../../localize' ; import { IProjectWizardContext , OpenBehavior } from './IProjectWizardContext' ; export class OpenBehaviorStep extends AzureWizardPromptStep < IProjectWizardContext > { public async prompt ( context ) { const picks = [ { label : localize ( 'OpenInCurrentWindow' , 'Open in current window' ) , data : 'OpenInCurrentWindow' } , { label : localize ( 'OpenInNewWindow' , 'Open in new window' ) , data : 'OpenInNewWindow' } , { label : localize ( 'AddToWorkspace' , 'Add to workspace' ) , data : 'AddToWorkspace' } ] ; const placeHolder = localize ( 'selectOpenBehavior' , 'Select how you would like to open your project' ) ; context . openBehavior = ( await context . ui . showQuickPick ( picks , { placeHolder } ) ) . data ; } public shouldPrompt ( context ) { return ! context . openBehavior && context . openBehavior !== 'AlreadyOpen' && context . openBehavior !== 'DontOpen' ; } }