Skip to content

Commit ac37b5b

Browse files
author
David Hasani
committed
add userContext
1 parent a51edcb commit ac37b5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { createCodeWhispererChatStreamingClient } from '../../../shared/clients/
2121
import { ChatSessionManager } from '../../../amazonqGumby/chat/storages/chatSession'
2222
import { setContext } from '../../../shared/vscode/setContext'
2323
import * as codeWhisperer from '../../client/codewhisperer'
24+
import { getOperatingSystem } from '../../../shared/telemetry/util'
2425

2526
export abstract class ProposedChangeNode {
2627
abstract readonly resourcePath: string
@@ -425,6 +426,11 @@ export class ProposedTransformationExplorer {
425426
linesOfCodeSubmitted: transformByQState.getLinesOfCodeSubmitted(), // currently unavailable for SQL conversions
426427
},
427428
},
429+
userContext: {
430+
ideCategory: 'VSCODE',
431+
operatingSystem: getOperatingSystem(),
432+
product: 'CodeWhisperer',
433+
},
428434
})
429435
} catch (err: any) {
430436
// log error, but continue to show user diff.patch with results

0 commit comments

Comments
 (0)