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/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt
+10-33Lines changed: 10 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -228,8 +228,16 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
228
228
codewhispererEndToEndStart =System.nanoTime()
229
229
}
230
230
231
-
val nextCaretPosition = calculateNextCaretPosition(requestContext, firstValidRecommendation)
232
-
val nextFileContextInfo = createNextFileContextInfo(requestContext, firstValidRecommendation)
231
+
val nextCaretPosition =CaretPosition(
232
+
line = requestContext.caretPosition.line + firstValidRecommendation.recommendation.content().count { it =='\n' },
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererTestBase.kt
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -241,13 +241,12 @@ open class CodeWhispererTestBase {
0 commit comments