'use strict' ; import * as vscode from 'vscode' ; import { ALObjectWizard } from "./alObjectWizard" ; import { ALPageWizardData } from "./alPageWizardData" ; import { ALPageWizardPage } from "./alPageWizardPage" ; import { DevToolsExtensionContext } from "../../devToolsExtensionContext" ; import { ALObjectWizardSettings } from "./alObjectWizardSettings" ; export class ALPageWizard 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 config = vscode . workspace . getConfiguration ( 'alOutline' , settings . getDestDirectoryUri ( ) ) ; let objectId = await this . _toolsExtensionContext . toolsLangServerClient . getNextObjectId ( settings . getDestDirectoryPath ( ) , "Page" ) ; let wizardData = new ALPageWizardData ( ) ; wizardData . objectId = objectId . toString ( ) ; wizardData . objectName = '' ; wizardData . createTooltips = ! ! config . get < boolean > ( 'addToolTipsToPageFields' ) ; wizardData . reuseToolTips = ! config . get < boolean > ( 'doNotReuseToolTipsFromOtherPages' ) ; wizardData . toolTipsSource = config . get < string [ ] > ( 'reuseToolTipsFromDependencies' ) ; let wizardPage = new ALPageWizardPage ( this . _toolsExtensionContext , settings , wizardData ) ; wizardPage . show ( ) ; } }