Skip to content

Commit c19a269

Browse files
authored
Merge branch 'main' into release-please--branches--main
2 parents e03155a + 7d71d0a commit c19a269

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

server/aws-lsp-codewhisperer/src/language-server/agenticChat/agenticChatController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3535,6 +3535,7 @@ export class AgenticChatController implements ChatHandlers {
35353535
if (triggerContext.contextInfo) {
35363536
metric.mergeWith({
35373537
cwsprChatHasContextList: triggerContext.documentReference?.filePaths?.length ? true : false,
3538+
cwsprChatHasWorkspaceContext: triggerContext.hasWorkspace ?? false,
35383539
cwsprChatFolderContextCount: triggerContext.contextInfo.contextCount.folderContextCount,
35393540
cwsprChatFileContextCount: triggerContext.contextInfo.contextCount.fileContextCount,
35403541
cwsprChatRuleContextCount: triggerContext.contextInfo.contextCount.activeRuleContextCount,

server/aws-lsp-codewhisperer/src/language-server/chat/telemetry/chatTelemetryController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ export class ChatTelemetryController {
338338
chatConversationType: metric.cwsprChatConversationType,
339339
chatActiveEditorImportCount: metric.cwsprChatActiveEditorImportCount,
340340
cwsprChatHasContextList: metric.cwsprChatHasContextList,
341+
cwsprChatHasWorkspaceContext: metric.cwsprChatHasWorkspaceContext,
341342
cwsprChatFolderContextCount: metric.cwsprChatFolderContextCount,
342343
cwsprChatFileContextCount: metric.cwsprChatFileContextCount,
343344
cwsprChatRuleContextCount: metric.cwsprChatRuleContextCount,

server/aws-lsp-codewhisperer/src/shared/telemetry/telemetryService.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ describe('TelemetryService', () => {
775775
},
776776
{
777777
cwsprChatHasContextList: true,
778+
cwsprChatHasWorkspaceContext: false,
778779
cwsprChatFolderContextCount: 0,
779780
cwsprChatFileContextCount: 0,
780781
cwsprChatRuleContextCount: 0,
@@ -844,6 +845,7 @@ describe('TelemetryService', () => {
844845
experimentName: undefined,
845846
userVariation: undefined,
846847
cwsprChatHasContextList: true,
848+
cwsprChatHasWorkspaceContext: false,
847849
cwsprChatFolderContextCount: 0,
848850
cwsprChatFileContextCount: 0,
849851
cwsprChatRuleContextCount: 0,

server/aws-lsp-codewhisperer/src/shared/telemetry/telemetryService.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ export class TelemetryService {
563563
chatConversationType: ChatConversationType
564564
chatActiveEditorImportCount?: number
565565
cwsprChatHasContextList: boolean
566+
cwsprChatHasWorkspaceContext?: boolean
566567
cwsprChatFolderContextCount: number
567568
cwsprChatFileContextCount: number
568569
cwsprChatFileContextLength: number
@@ -616,6 +617,7 @@ export class TelemetryService {
616617
cwsprChatActiveEditorImportCount: additionalParams.chatActiveEditorImportCount,
617618
codewhispererCustomizationArn: params.customizationArn,
618619
cwsprChatHasContextList: additionalParams.cwsprChatHasContextList,
620+
cwsprChatHasWorkspaceContext: additionalParams.cwsprChatHasWorkspaceContext,
619621
cwsprChatFolderContextCount: additionalParams.cwsprChatFolderContextCount,
620622
cwsprChatFileContextCount: additionalParams.cwsprChatFileContextCount,
621623
cwsprChatRuleContextCount: additionalParams.cwsprChatRuleContextCount,

server/aws-lsp-codewhisperer/src/shared/telemetry/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ export type AddMessageEvent = {
319319

320320
// context related metrics
321321
cwsprChatHasContextList?: boolean
322+
cwsprChatHasWorkspaceContext?: boolean
322323
cwsprChatFolderContextCount?: number
323324
cwsprChatFileContextCount?: number
324325
cwsprChatFileContextLength?: number

0 commit comments

Comments
 (0)