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/util/CodeWhispererFileContextProvider.kt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -144,9 +144,10 @@ class DefaultCodeWhispererFileContextProvider(private val project: Project) : Fi
144
144
}
145
145
146
146
return supplementalContext?.let {
147
+
val latency =System.currentTimeMillis() - startFetchingTimestamp
147
148
if (it.contents.isNotEmpty()) {
148
149
val logStr = buildString {
149
-
append("Successfully fetched supplemental context with strategy ${it.strategy} with ${it.latency} ms")
150
+
append("Successfully fetched supplemental context with strategy ${it.strategy} with $latency ms")
150
151
it.contents.forEachIndexed { index, chunk ->
151
152
append(
152
153
"""
@@ -166,8 +167,7 @@ class DefaultCodeWhispererFileContextProvider(private val project: Project) : Fi
166
167
LOG.warn { "Failed to fetch supplemental context, empty list." }
0 commit comments