Skip to content

Commit 58ba1cc

Browse files
committed
fix inline completion pre-process timestamp set incorrectly
1 parent f738715 commit 58ba1cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/codewhisperer/service/recommendationHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ export class RecommendationHandler {
239239
)
240240
}
241241
const request = currentSession.requestContext.request
242-
TelemetryHelper.instance.setPreprocessEndTime()
242+
if (!isNextSession) {
243+
TelemetryHelper.instance.setPreprocessEndTime()
244+
}
243245

244246
// set start pos for non pagination call or first pagination call
245247
if (!pagination || (pagination && page === 0)) {

0 commit comments

Comments
 (0)