File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
codewhispererChat/controllers/chat Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 363
363
"interactionType" : { "shape" : " ChatMessageInteractionType" },
364
364
"interactionTarget" : { "shape" : " String" },
365
365
"acceptedCharacterCount" : { "shape" : " Integer" },
366
+ "acceptedLineCount" : { "shape" : " Integer" },
366
367
"acceptedSnippetHasReference" : { "shape" : " Boolean" }
367
368
}
368
369
},
Original file line number Diff line number Diff line change 2
2
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
-
6
5
import { UserIntent } from '@amzn/codewhisperer-streaming'
7
6
import {
8
7
AmazonqAddMessage ,
@@ -158,6 +157,7 @@ export class CWCTelemetryHelper {
158
157
cwsprChatMessageId : message . messageId ,
159
158
cwsprChatInteractionType : 'insertAtCursor' ,
160
159
cwsprChatAcceptedCharactersLength : message . code . length ,
160
+ cwsprChatAcceptedNumberOfLines : message . code . split ( '\n' ) . length ,
161
161
cwsprChatInteractionTarget : message . insertionTargetType ,
162
162
cwsprChatHasReference : message . codeReference && message . codeReference . length > 0 ,
163
163
cwsprChatCodeBlockIndex : message . codeBlockIndex ,
@@ -249,6 +249,7 @@ export class CWCTelemetryHelper {
249
249
interactionType : this . getCWClientTelemetryInteractionType ( event . cwsprChatInteractionType ) ,
250
250
interactionTarget : event . cwsprChatInteractionTarget ,
251
251
acceptedCharacterCount : event . cwsprChatAcceptedCharactersLength ,
252
+ acceptedLineCount : event . cwsprChatAcceptedNumberOfLines ,
252
253
acceptedSnippetHasReference : false ,
253
254
} ,
254
255
} ,
Original file line number Diff line number Diff line change 271
271
"type" : " int" ,
272
272
"description" : " Count of code characters copied to the editor"
273
273
},
274
+ {
275
+ "name" : " cwsprChatAcceptedNumberOfLines" ,
276
+ "type" : " int" ,
277
+ "description" : " Count of lines of code copied to the editor"
278
+ },
274
279
{
275
280
"name" : " cwsprChatHasReference" ,
276
281
"type" : " boolean" ,
830
835
"type" : " cwsprChatAcceptedCharactersLength" ,
831
836
"required" : false
832
837
},
838
+ {
839
+ "type" : " cwsprChatAcceptedNumberOfLines" ,
840
+ "required" : false
841
+ },
833
842
{
834
843
"type" : " cwsprChatHasReference" ,
835
844
"required" : false
You can’t perform that action at this time.
0 commit comments