import { WebSiteManagementModels } from '@azure/arm-appservice' ; import { RemoteDebugLanguage } from 'vscode-azureappservice' ; export function getRemoteDebugLanguage ( siteConfig ) { if ( siteConfig . linuxFxVersion && siteConfig . linuxFxVersion . startsWith ( 'DOCKER|mcr.microsoft.com/azure-functions/node' ) ) { return RemoteDebugLanguage . Node ; } throw new Error ( 'Azure Remote Debugging is currently only supported for Node.js Function Apps running on Linux App Service plans. Consumption plans are not supported.' ) ; }