Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class FocusAreaContextExtractor(private val fqnWebviewAdapter: FqnWebviewAdapter
val startOffset = 0.coerceAtLeast(offset - halfMaxCharacters)
val endOffset = fileText.length.coerceAtMost(offset + halfMaxCharacters)

// Adjust the start and end offsets if necessary to ensure a total of 40k characters
// Adjust the start and end offsets if necessary to ensure a total of 10k characters
val excessCharacters = maxCharacters - (endOffset - startOffset)
val adjustedStartOffset = 0.coerceAtLeast(startOffset - excessCharacters)
val adjustedEndOffset = fileText.length.coerceAtMost(endOffset + excessCharacters)
Expand All @@ -198,7 +198,7 @@ class FocusAreaContextExtractor(private val fqnWebviewAdapter: FqnWebviewAdapter
}

companion object {
const val MAX_LENGTH = 40000
const val MAX_LENGTH = 10000
}
}

Expand Down
Loading