import { IActionContext } from 'vscode-azureextensionui' ; import { FuncVersion , tryParseFuncVersion } from '../FuncVersion' ; import { getLocalFuncCoreToolsVersion } from './getLocalFuncCoreToolsVersion' ; export async function tryGetLocalFuncVersion ( context , workspacePath ) { try { const version = await getLocalFuncCoreToolsVersion ( context , workspacePath ) ; if ( version ) { return tryParseFuncVersion ( version ) ; } } catch ( err ) { } return undefined ; }