You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(user-error"Current line is not a TODO comment and cannot proceed with `ai-code-implement-todo'. Please select a TODO comment (not DONE), a region of comments, or activate on a blank line")))
371
+
(_ (unless region-comment-block-p
372
+
(user-error"Selected region must be a comment block")))
370
373
(action-intent (completing-read"Select action: "
371
374
'("Code change""Ask question")
372
375
nilt))
@@ -391,16 +394,12 @@ ARG is the prefix argument for clipboard context."
391
394
(initial-input
392
395
(cond
393
396
((and ask-question-p region-text)
394
-
(unless (ai-code--is-comment-block region-text)
395
-
(user-error"Selected region must be a comment block"))
396
397
(format"Regarding this TODO comment block in the selected region:\n%s\n%s%s%s"
(user-error"Selected region must be a comment block"))
404
403
(format
405
404
"Please implement code for this requirement comment block in the selected region first. 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). 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"
406
405
region-location-line region-text function-context
@@ -409,6 +408,7 @@ ARG is the prefix argument for clipboard context."
409
408
(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"
0 commit comments