{#if SUPPORTED_LANGUAGES.has(lang)}
{#if !genLoading && $generatedCode.length > 0}
{#if $generatedExplanation.length > 0} {$generatedExplanation} {/if}
{:else} {@const fixAction = (_) => { if ($copilotInfo.exists_ai_resource) { onFix(() => close(null)) } }}
{#if $copilotInfo.exists_ai_resource}
{#if $generatedCode.length > 0}
{#if $generatedExplanation.length > 0}

Explanation: {$generatedExplanation}

{/if} {:else} {/if}
{:else}

Enable Windmill AI in the workspace settings

{/if}
{/if}
{/if}