Skip to content

Commit

Permalink
Adding Language to user events
Browse files Browse the repository at this point in the history
  • Loading branch information
laileni-aws committed Oct 10, 2024
1 parent 9cfda7d commit 9f0d6ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class CWCTelemetryHelper {
cwsprChatCodeBlockIndex: message.codeBlockIndex,
cwsprChatTotalCodeBlocks: message.totalCodeBlocks,
cwsprChatHasProjectContext: this.responseWithProjectContext.get(message.messageId),
cwsprChatCodeBlockLanaguge: message.codeBlockLanguage,
cwsprChatProgrammingLanguage: message.codeBlockLanguage,
}
break
case 'code_was_copied_to_clipboard':
Expand All @@ -216,7 +216,7 @@ export class CWCTelemetryHelper {
cwsprChatCodeBlockIndex: message.codeBlockIndex,
cwsprChatTotalCodeBlocks: message.totalCodeBlocks,
cwsprChatHasProjectContext: this.responseWithProjectContext.get(message.messageId),
cwsprChatCodeBlockLanaguge: message.codeBlockLanguage,
cwsprChatProgrammingLanguage: message.codeBlockLanguage,
}
break
case 'follow-up-was-clicked':
Expand Down
7 changes: 1 addition & 6 deletions packages/core/src/shared/telemetry/vscodeTelemetry.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@
"type": "boolean",
"description": "true if query has project level context, false otherwise."
},
{
"name": "cwsprChatCodeBlockLanaguge",
"type": "string",
"description": "programming language generated by the Q chat"
},
{
"name": "cwsprChatProjectContextQueryMs",
"type": "int",
Expand Down Expand Up @@ -907,7 +902,7 @@
"required": false
},
{
"type": "cwsprChatCodeBlockLanaguge",
"type": "cwsprChatProgrammingLanguage",
"required": false
}
]
Expand Down

0 comments on commit 9f0d6ec

Please sign in to comment.