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