import { IActionContext } from 'vscode-azureextensionui' ; import { ext } from '../extensionVariables' ; import { SlotsTreeItem } from '../tree/SlotsTreeItem' ; import { SlotTreeItem } from '../tree/SlotTreeItem' ; import { ISiteCreatedOptions } from './createFunctionApp/showSiteCreated' ; export async function createSlot ( context , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < SlotsTreeItem > ( SlotsTreeItem . contextValue , context ) ; } ( < ISiteCreatedOptions > context ) . showCreatedNotification = true ; const slotNode = await node . createChild ( context ) ; return slotNode . fullId ; }