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: plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/editor/context/focusArea/FocusAreaContextExtractor.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ class FocusAreaContextExtractor(private val fqnWebviewAdapter: FqnWebviewAdapter
180
180
val startOffset =0.coerceAtLeast(offset - halfMaxCharacters)
181
181
val endOffset = fileText.length.coerceAtMost(offset + halfMaxCharacters)
182
182
183
-
// Adjust the start and end offsets if necessary to ensure a total of 40k characters
183
+
// Adjust the start and end offsets if necessary to ensure a total of 10k characters
184
184
val excessCharacters = maxCharacters - (endOffset - startOffset)
185
185
val adjustedStartOffset =0.coerceAtLeast(startOffset - excessCharacters)
186
186
val adjustedEndOffset = fileText.length.coerceAtMost(endOffset + excessCharacters)
@@ -198,7 +198,7 @@ class FocusAreaContextExtractor(private val fqnWebviewAdapter: FqnWebviewAdapter
0 commit comments