avante.nvim/lua/avante/templates/_diagnostics.avanterules

27 lines
742 B
Django/Jinja
Raw Normal View History

2024-11-23 21:49:33 +08:00
{%- if use_xml_format -%}
{%- if diagnostics -%}
<diagnostic_field_description>
2024-11-24 06:02:34 +08:00
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>
2024-11-23 21:49:33 +08:00
<diagnostics>
{{diagnostics}}
</diagnostics>
{%- endif %}
{%- else -%}
{%- if diagnostics -%}
DIAGNOSTIC_FIELD_DESCRIPTION:
2024-11-24 06:02:34 +08:00
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
2024-11-23 21:49:33 +08:00
DIAGNOSTICS:
{{diagnostics}}
{%- endif %}
{%- endif %}