import { callWithTelemetryAndErrorHandling , IActionContext } from "vscode-azureextensionui" ; import * as api from '../../vscode-azurefunctions.api' ; import { createFunctionInternal } from "../createFunction/createFunction" ; export async function createFunctionFromApi ( options ) { return await callWithTelemetryAndErrorHandling ( 'api.createFunction' , async ( context ) => { await createFunctionInternal ( context , options ) ; } ) ; }