fix: refine suggestion prompts (#1087)
This commit is contained in:
parent
a874c2736a
commit
0df03dd213
@ -213,6 +213,8 @@ function Suggestion:show()
|
||||
|
||||
local suggestions = ctx.suggestions_list and ctx.suggestions_list[ctx.current_suggestions_idx] or nil
|
||||
|
||||
Utils.debug("show suggestions", suggestions)
|
||||
|
||||
if not suggestions then return end
|
||||
|
||||
for _, suggestion in ipairs(suggestions) do
|
||||
|
@ -32,8 +32,8 @@ Your task is to suggest code modifications at the cursor position. Follow these
|
||||
{% endraw %}
|
||||
|
||||
JSON fields explanation:
|
||||
start_row: The starting row of the code snippet you want to replace (1-indexed), inclusive
|
||||
end_row: The ending row of the code snippet you want to replace (1-indexed), inclusive
|
||||
start_row: The starting row of the code snippet you want to replace, start from 1, inclusive
|
||||
end_row: The ending row of the code snippet you want to replace, start from 1, inclusive
|
||||
content: The suggested code you want to replace the original code with
|
||||
|
||||
Guidelines:
|
||||
@ -52,4 +52,5 @@ Guidelines:
|
||||
13. If there are no recommended modifications, return an empty list.
|
||||
14. Remember to ONLY RETURN the suggested code snippet, without any additional formatting or explanation.
|
||||
15. The returned code must satisfy the context, especially the context where the current cursor is located.
|
||||
16. Each line in the returned code snippet is complete code; do not include incomplete code.
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user