Skip to content

Commit ccd8ef6

Browse files
committed
Remove MoveToFocusedCodeFunction
1 parent 1c8ad4c commit ccd8ef6

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Tool/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/ActiveDocumentChatContextCollector.swift

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

4747
if !isSensitive {
48-
// When the bot is not focusing on any code, or the focusing area is not the user's
49-
// selection, it can move the focus back to the user's selection.
50-
51-
if context.focusedContext == nil ||
52-
!(context.focusedContext?.codeRange.contains(context.selectionRange) ?? false)
53-
{
54-
functions.append(MoveToFocusedCodeFunction(contextCollector: self))
55-
}
56-
5748
// When there is a line annotation not in the focused area, the bot can move the focus
5849
// area
5950
// to the code covering the line of the annotation.

0 commit comments

Comments
 (0)