Skip to content

Commit 31ea699

Browse files
author
Kang Tu
committed
Include repository context info in ai-code-implement-todo function
1 parent e07cc70 commit 31ea699

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ai-code-change.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ ARG is the prefix argument for clipboard context."
302302
(format "Selected region starting on line %d"
303303
region-start-line)))))
304304
(files-context-string (ai-code--get-context-files-string))
305+
(repo-context-string (ai-code--format-repo-context-info))
305306
(prompt-label
306307
(cond
307308
((and clipboard-context
@@ -342,7 +343,8 @@ ARG is the prefix argument for clipboard context."
342343
(concat prompt
343344
(when (and clipboard-context
344345
(string-match-p "\\S-" clipboard-context))
345-
(concat "\n\nClipboard context:\n" clipboard-context)))))
346+
(concat "\n\nClipboard context:\n" clipboard-context))
347+
repo-context-string)))
346348
(ai-code--insert-prompt final-prompt)))
347349

348350
;;; Flycheck integration

0 commit comments

Comments
 (0)