Skip to content

Commit 2eea363

Browse files
authored
Merge pull request #2 from kelvin-klchu/stop-code-gen-telemetry
telemetry(amazonq): replace stopCodeGeneration telemetry with UiTelemetry.click
2 parents ae7f9c6 + d11f7e2 commit 2eea363

File tree

1 file changed

+3
-1
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller

1 file changed

+3
-1
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/controller/FeatureDevController.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.intellij.openapi.command.WriteCommandAction
1515
import com.intellij.openapi.editor.Caret
1616
import com.intellij.openapi.editor.Editor
1717
import com.intellij.openapi.fileEditor.FileEditorManager
18+
import com.intellij.openapi.project.Project
1819
import com.intellij.openapi.vfs.VfsUtil
1920
import com.intellij.openapi.wm.ToolWindowManager
2021
import kotlinx.coroutines.withContext
@@ -74,6 +75,7 @@ import software.aws.toolkits.jetbrains.utils.notifyError
7475
import software.aws.toolkits.resources.message
7576
import software.aws.toolkits.telemetry.AmazonqTelemetry
7677
import software.aws.toolkits.telemetry.Result
78+
import software.aws.toolkits.telemetry.UiTelemetry
7779
import java.util.UUID
7880

7981
class FeatureDevController(
@@ -290,7 +292,7 @@ class FeatureDevController(
290292

291293
private suspend fun handleStopMessage(message: IncomingFeatureDevMessage.StopResponse) {
292294
val session: Session?
293-
AmazonqTelemetry.stopCodeGeneration(tabId = message.tabId)
295+
UiTelemetry.click(null as Project?, "amazonq_stopCodeGeneration")
294296
messenger.sendAnswer(
295297
tabId = message.tabId,
296298
message("amazonqFeatureDev.code_generation.stopping_code_generation"),

0 commit comments

Comments
 (0)