import { callWithTelemetryAndErrorHandlingSync } from "vscode-azureextensionui" ; import { ext } from "../extensionVariables" ; import { CaseInsensitiveMap } from "../util/CaseInsensitiveMap" ; import { getAvailableResourceTypesAndVersionsNoThrow } from "./getAvailableResourceTypesAndVersionsNoThrow" ; export async function showAvailableResourceTypesAndVersions ( schema ) { await callWithTelemetryAndErrorHandlingSync ( "showAvailableResourceTypesAndVersions" , async ( ) => { const map = await getAvailableResourceTypesAndVersionsNoThrow ( schema ) ; for ( const entry of map . entries ( ) ) { const key = entry [ 0 ] ; for ( const version of entry [ 1 ] ) { ext . outputChannel . appendLine ( `${ key }@${ version }` ) ; } } } ) ; }