import { kubernetesTools } from '../kubernetes/kubernetesTools' ; import { refreshAllTreeViews } from '../views/treeViews' ; param contextName export async function setCurrentKubernetesContext ( contextName ) { const setContextResult = await kubernetesTools . setCurrentContext ( contextName ) ; if ( setContextResult ?. isChanged ) { refreshAllTreeViews ( ) ; } }