import { AzureTreeItem , IActionContext } from "vscode-azureextensionui" ; import { ext } from "../extensionVariables" ; export async function deleteNode ( context , expectedContextValue , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < AzureTreeItem > ( expectedContextValue , context ) ; } await node . deleteTreeItem ( context ) ; }