Skip to content

Commit 28a9463

Browse files
authored
Merge pull request #74 from tninja/kang_feat
Chore: ai-code-implement-todo should implement comment blocks first, before add DONE prefix
2 parents 69fec16 + f0e9885 commit 28a9463

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ai-code-change.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ ARG is the prefix argument for clipboard context."
319319
(region-text
320320
(unless (ai-code--is-comment-block region-text)
321321
(user-error "Selected region must be a comment block"))
322-
(format (concat
323-
"Please implement code for this requirement comment block in the selected region. "
324-
"Keep the comment in place and ensure it begins with a DONE prefix (change TODO to DONE or prepend DONE if no prefix). "
322+
(format (concat
323+
"Please implement code for this requirement comment block in the selected region first. "
324+
"After implementing, keep the comment in place and ensure it begins with a DONE prefix (change TODO to DONE or prepend DONE if no prefix). "
325325
"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.\n%s\n%s%s%s")
326326
region-location-line region-text function-context files-context-string))
327327
(is-comment
328-
(format "Please implement code for this requirement comment on line %d: '%s'. Keep the comment in place and ensure it begins with a DONE prefix (change TODO to DONE or prepend DONE if needed). 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"
328+
(format "Please implement code for this requirement comment on line %d: '%s' first. After implementing, keep the comment in place and ensure it begins with a DONE prefix (change TODO to DONE or prepend DONE if needed). 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"
329329
current-line-number current-line function-context files-context-string))
330330
;; (function-name
331331
;; (format "Please implement code after all TODO comments in function '%s'. The TODOs are TODO comments. Keep each comment in place and ensure each begins with a DONE prefix (change TODO to DONE or prepend DONE if needed) before adding implementation code after it. Keep the existing code structure and only add code after these marked items.%s"

0 commit comments

Comments
 (0)