import { IActionContext } from 'vscode-azureextensionui' ; import { ext } from '../extensionVariables' ; import { ProductionSlotTreeItem } from '../tree/ProductionSlotTreeItem' ; import { SlotTreeItemBase } from '../tree/SlotTreeItemBase' ; import { openUrl } from '../utils/openUrl' ; export async function browseWebsite ( context , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < SlotTreeItemBase > ( ProductionSlotTreeItem . contextValue , context ) ; } await openUrl ( node . site . defaultHostUrl ) ; }