import { IAzureQuickPickItem } from "vscode-azureextensionui" ; import { BindingSettingValue } from "../../../funcConfig/function" ; import { envUtils } from "../../../utils/envUtils" ; import { IBindingWizardContext } from "../IBindingWizardContext" ; import { BindingSettingStepBase } from "./BindingSettingStepBase" ; export class BooleanPromptStep extends BindingSettingStepBase { public async promptCore ( context ) { let picks = [ true , false ] . map ( v => { return { label : String ( v ) , data : v } ; } ) ; if ( ! envUtils . isEnvironmentVariableSet ( this . _setting . defaultValue ) ) { picks = picks . reverse ( ) ; } return ( await context . ui . showQuickPick ( picks , { placeHolder : this . _setting . description || this . _setting . label } ) ) . data ; } }