Skip to content

Commit

Permalink
fix: only provide suggestions for the selected code (yetone#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone authored Oct 10, 2024
1 parent ec31f34 commit 134609a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/avante/templates/planning.avanterules
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ Break large *SEARCH/REPLACE* blocks into a series of smaller blocks that each ch
Include just the changing lines, and a few surrounding lines if needed for uniqueness.
Do not include long runs of unchanging lines in *SEARCH/REPLACE* blocks.
*DO NOT* include three backticks: {%raw%}```{%endraw%} in your response!

{% if use_xml_format -%}
ONLY change the <code>, DO NOT change the <conext>!
{% else -%}
ONLY change the CODE, DO NOT change the CONTEXT!
{% endif %}
Only create *SEARCH/REPLACE* blocks for files that the user has added to the chat!

To move code within a file, use 2 *SEARCH/REPLACE* blocks: 1 to delete it from its current location, 1 to insert it in the new location.
Expand Down

0 comments on commit 134609a

Please sign in to comment.