import * as appservice from 'vscode-azureappservice' ; import { ParsedSite } from 'vscode-azureappservice' ; import { IActionContext } from 'vscode-azureextensionui' ; import { ext } from '../../extensionVariables' ; import { ProductionSlotTreeItem } from '../../tree/ProductionSlotTreeItem' ; import { RemoteFunctionTreeItem } from '../../tree/remoteProject/RemoteFunctionTreeItem' ; import { SlotTreeItemBase } from '../../tree/SlotTreeItemBase' ; export async function stopStreamingLogs ( context , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < SlotTreeItemBase > ( ProductionSlotTreeItem . contextValue , { ... context , suppressCreatePick : true } ) ; } const site = node instanceof SlotTreeItemBase ? node . site : node . parent . parent . site ; await appservice . stopStreamingLogs ( site , node . logStreamPath ) ; }