import { editScmType } from 'vscode-azureappservice' ; import { IActionContext } from 'vscode-azureextensionui' ; import { ext } from '../extensionVariables' ; import { ProductionSlotTreeItem } from '../tree/ProductionSlotTreeItem' ; import { SlotTreeItemBase } from '../tree/SlotTreeItemBase' ; export async function configureDeploymentSource ( context , node ? ) { if ( ! node ) { node = await ext . tree . showTreeItemPicker < SlotTreeItemBase > ( ProductionSlotTreeItem . contextValue , context ) ; } const updatedScmType = await editScmType ( context , node . site , node . subscription ) ; if ( updatedScmType !== undefined ) { context . telemetry . properties . updatedScmType = updatedScmType ; } }