Skip to content

Commit 13c2111

Browse files
authored
CodeWhisperer: fix learn more click telemetry issue (#3899)
1. it was wrongly sent for every BrowserLink creation, it should only be sent when there's actually a click.
1 parent c963a66 commit 13c2111

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/learn/LearnCodeWhispererUIComponents.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ object LearnCodeWhispererUIComponents {
319319
message("codewhisperer.learn_page.examples.description.part_2"),
320320
CODEWHISPERER_SUPPORTED_LANG_URI
321321
).apply {
322-
UiTelemetry.click(null as Project?, "codewhisperer_GenerateSuggestions_LearnMore")
322+
addActionListener {
323+
UiTelemetry.click(null as Project?, "codewhisperer_GenerateSuggestions_LearnMore")
324+
}
323325
},
324326
inlineLabelConstraints
325327
)

0 commit comments

Comments
 (0)