import { AzExtTreeItem , IActionContext , openInPortal as uiOpenInPortal } from 'vscode-azureextensionui' ; import { ext } from '../extensionVariables' ; import { ProductionSlotTreeItem } from '../tree/ProductionSlotTreeItem' ; export async function openInPortal ( context , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < AzExtTreeItem > ( ProductionSlotTreeItem . contextValue , context ) ; } await uiOpenInPortal ( node , node . fullId ) ; }