fix(sidebar): correct syntax highlighting for selected code (#1936)

This commit is contained in:
Peter Cardenas
2025-04-29 22:59:29 -07:00
committed by GitHub
parent 95d58435d3
commit cc1ea65cbc

View File

@@ -1647,7 +1647,7 @@ local function render_chat_record_prefix(timestamp, provider, model, request, se
.. "\n\n- Selected code: "
.. "\n\n```"
.. (selected_code.file_type or "")
.. (selected_code.path and ":" .. selected_code.path or "")
.. (selected_code.path and " " .. selected_code.path or "")
.. "\n"
.. selected_code.content
.. "\n```"