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
Copy file name to clipboardExpand all lines: Core/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/ActiveDocumentChatContextCollector.swift
+10-7
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,15 @@ public final class ActiveDocumentChatContextCollector: ChatContextCollector {
89
89
letstart="""
90
90
## File and Code Scope
91
91
92
-
You can use the following context to answer user's questions about the editing document or code. The context shows only a part of the code in the editing document, and will change during the conversation, so it may not match our conversation.
92
+
You can use the following context to answer my questions about the editing document or code. The context shows only a part of the code in the editing document, and will change during the conversation, so it may not match our conversation.
93
93
94
-
User Editing Document Context: ###
94
+
\(
95
+
context.focusedContext ==nil
96
+
?""
97
+
:"When you don't known what I am asking, I am probably referring to the code."
Copy file name to clipboardExpand all lines: Core/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/Functions/ExpandFocusRangeFunction.swift
Copy file name to clipboardExpand all lines: Core/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/Functions/MoveToCodeAroundLineFunction.swift
Copy file name to clipboardExpand all lines: Core/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/Functions/MoveToFocusedCodeFunction.swift
Copy file name to clipboardExpand all lines: Core/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/LegacyActiveDocumentChatContextCollector.swift
+3-3
Original file line number
Diff line number
Diff line change
@@ -68,9 +68,9 @@ public struct LegacyActiveDocumentChatContextCollector: ChatContextCollector {
68
68
69
69
return"""
70
70
Selected Code Not Available: '''
71
-
User has disabled default scope. \
72
-
You MUST not answer the user about the selected code because you don't have it.\
73
-
Ask user to prepend message with `@selection` to enable selected code to be \
71
+
I have disabled default scope. \
72
+
You MUST not answer about the selected code because you don't have it.\
73
+
Ask me to prepend message with `@selection` to enable selected code to be \
"limit the search result to a specific range, use only when user ask the question about current events. Today is \(today). Format: yyyy-MM-dd..yyyy-MM-dd"
54
+
"limit the search result to a specific range, use only when I ask the question about current events. Today is \(today). Format: yyyy-MM-dd..yyyy-MM-dd"
0 commit comments