We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb07bb2 commit e58d264Copy full SHA for e58d264
src/codewhisperer/util/telemetryHelper.ts
@@ -466,11 +466,11 @@ export class TelemetryHelper {
466
467
private getAggregatedSuggestionReferenceCount(
468
events: CodewhispererUserDecision[]
469
- // if there is any recommendation reference within the session, mark the reference number
+ // if there is reference for accepted recommendation within the session, mark the reference number
470
// as 1, otherwise mark the session as 0
471
) {
472
for (const event of events) {
473
- if (event.codewhispererSuggestionReferenceCount != 0) {
+ if (event.codewhispererSuggestionState === 'Accept' && event.codewhispererSuggestionReferenceCount !== 0) {
474
return 1
475
}
476
0 commit comments