Skip to content

Commit 1c8ad4c

Browse files
committed
Remove ExpandFocusRangeFunction
1 parent 7a9b65c commit 1c8ad4c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Tool/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/ActiveDocumentChatContextCollector.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ public final class ActiveDocumentChatContextCollector: ChatContextCollector {
4545
var functions = [any ChatGPTFunction]()
4646

4747
if !isSensitive {
48-
// When the bot is already focusing on a piece of code, it can expand the range.
49-
50-
if context.focusedContext != nil {
51-
functions.append(ExpandFocusRangeFunction(contextCollector: self))
52-
}
53-
5448
// When the bot is not focusing on any code, or the focusing area is not the user's
5549
// selection, it can move the focus back to the user's selection.
5650

@@ -104,7 +98,9 @@ public final class ActiveDocumentChatContextCollector: ChatContextCollector {
10498
let start = """
10599
## File and Code Scope
106100
107-
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.
101+
You can use the following context to answer my questions about the editing document \
102+
or code. The context shows only a part of the code in the editing document, and will \
103+
change during the conversation, so it may not match our conversation.
108104
109105
\(
110106
context.focusedContext == nil

0 commit comments

Comments
 (0)