avante.nvim/lua/avante/templates/_diagnostics.avanterules
2024-11-24 06:02:34 +08:00

27 lines
742 B
Django/Jinja

{%- if use_xml_format -%}
{%- if diagnostics -%}
<diagnostic_field_description>
content: The diagnostic content
start_line: The starting line of the diagnostic (1-indexed)
end_line: The final line of the diagnostic (1-indexed)
severity: The severity of the diagnostic
source: The source of the diagnostic
</diagnostic_field_description>
<diagnostics>
{{diagnostics}}
</diagnostics>
{%- endif %}
{%- else -%}
{%- if diagnostics -%}
DIAGNOSTIC_FIELD_DESCRIPTION:
content: The diagnostic content
start_line: The starting line of the diagnostic (1-indexed)
end_line: The final line of the diagnostic (1-indexed)
severity: The severity of the diagnostic
source: The source of the diagnostic
DIAGNOSTICS:
{{diagnostics}}
{%- endif %}
{%- endif %}