Skip to content

Commit 5c2c093

Browse files
committed
Refine instructions for DONE prefix and code placement
1 parent 6f64725 commit 5c2c093

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

aider-code-change.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,17 +365,17 @@ The keyword and its definition are configured in `aider-todo-keyword-pair`."
365365
(user-error "Selected region must be a comment block"))
366366
(format (concat
367367
"Please implement code after this requirement comment block in the selected region. "
368-
"Keep the comment in place and ensure it begins with a DONE prefix (change %s to DONE or prepend DONE if no prefix) before adding the implementation code after it. "
369-
"Keep the existing code structure and add the implementation after this specific block.%s%s\n%s")
368+
"Keep the comment in place and ensure it begins with a DONE prefix (change %s to DONE or prepend DONE if no prefix). "
369+
"If this is a pure new code block, place it after the comment; otherwise keep the existing structure and make corresponding change for the context.%s%s\n%s")
370370
keyword
371371
(or function-context "")
372372
(if region-location-line (concat "\n" region-location-line) "")
373373
region-text))
374374
(is-comment
375375
(format (concat
376376
"Please implement code after this requirement comment on line %d: '%s'. "
377-
"Keep the comment in place and ensure it begins with a DONE prefix (change %s to DONE or prepend DONE if needed) before adding the implementation code after it. "
378-
"Keep the existing code structure and add the implementation after this specific comment.%s")
377+
"Keep the comment in place and ensure it begins with a DONE prefix (change %s to DONE or prepend DONE if needed). "
378+
"If this is a pure new code block, place it after the comment; otherwise keep the existing structure and make corresponding change for the context.%s")
379379
current-line-number current-line keyword (or function-context "")))
380380
(t
381381
(user-error (concat

0 commit comments

Comments
 (0)