Skip to content

Commit f051b40

Browse files
committed
Refactoring code
1 parent fecba69 commit f051b40

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/cwc/controller/chat/telemetry/TelemetryHelper.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ class TelemetryHelper(private val context: AmazonQAppInitContext, private val se
9393
cwsprChatProgrammingLanguage = data.activeFileContext.fileContext?.fileLanguage,
9494
cwsprChatActiveEditorTotalCharacters = data.activeFileContext.focusAreaContext?.codeSelection?.length,
9595
cwsprChatActiveEditorImportCount = data.activeFileContext.focusAreaContext?.codeNames?.fullyQualifiedNames?.used?.size,
96-
cwsprChatResponseCodeSnippetCount = 0,
96+
cwsprChatResponseCodeSnippetCount = numberOfCodeBlocks,
9797
cwsprChatResponseCode = statusCode,
9898
cwsprChatSourceLinkCount = response.relatedSuggestions?.size,
99-
cwsprChatReferencesCount = numberOfCodeBlocks,
99+
cwsprChatReferencesCount = 0,
100100
cwsprChatFollowUpCount = response.followUps?.size,
101101
cwsprChatTimeToFirstChunk = getResponseStreamTimeToFirstChunk(response.tabId).toInt(),
102102
cwsprChatTimeBetweenChunks = "[${getResponseStreamTimeBetweenChunks(response.tabId).joinToString(",")}]",
@@ -106,7 +106,7 @@ class TelemetryHelper(private val context: AmazonQAppInitContext, private val se
106106
cwsprChatConversationType = CwsprChatConversationType.Chat,
107107
credentialStartUrl = getStartUrl(context.project)
108108
)
109-
109+
val x=numberOfCodeBlocks
110110
val programmingLanguage = data.activeFileContext.fileContext?.fileLanguage
111111
val validProgrammingLanguage = if (ChatSessionV1.validLanguages.contains(programmingLanguage)) programmingLanguage else null
112112

0 commit comments

Comments
 (0)