'use strict' ; import { ALObjectWizard } from "./alObjectWizard" ; import { ALEnumExtWizardData } from "./alEnumExtWizardData" ; import { ALEnumExtWizardPage } from "./alEnumExtWizardPage" ; import { DevToolsExtensionContext } from "../../devToolsExtensionContext" ; import { ALObjectWizardSettings } from "./alObjectWizardSettings" ; export class ALEnumExtWizard extends ALObjectWizard { constructor ( toolsExtensionContext , newLabel , newDescription , newDetails ) { super ( toolsExtensionContext , newLabel , newDescription , newDetails ) ; } run ( settings ) { super . run ( settings ) ; this . runAsync ( settings ) ; } protected async runAsync ( settings ) { let objectId = await this . _toolsExtensionContext . toolsLangServerClient . getNextObjectId ( settings . getDestDirectoryPath ( ) , "enumextension" ) ; let wizardData = new ALEnumExtWizardData ( ) ; wizardData . objectId = objectId . toString ( ) ; wizardData . objectName = '' ; wizardData . firstValueId = this . _toolsExtensionContext . alLangProxy . getIdRangeStart ( settings . getDestDirectoryUri ( ) ) ; let wizardPage = new ALEnumExtWizardPage ( this . _toolsExtensionContext , settings , wizardData ) ; wizardPage . show ( ) ; } }