Skip to content

Commit

Permalink
add userContext
Browse files Browse the repository at this point in the history
  • Loading branch information
David Hasani committed Nov 13, 2024
1 parent a51edcb commit ac37b5b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { createCodeWhispererChatStreamingClient } from '../../../shared/clients/
import { ChatSessionManager } from '../../../amazonqGumby/chat/storages/chatSession'
import { setContext } from '../../../shared/vscode/setContext'
import * as codeWhisperer from '../../client/codewhisperer'
import { getOperatingSystem } from '../../../shared/telemetry/util'

export abstract class ProposedChangeNode {
abstract readonly resourcePath: string
Expand Down Expand Up @@ -425,6 +426,11 @@ export class ProposedTransformationExplorer {
linesOfCodeSubmitted: transformByQState.getLinesOfCodeSubmitted(), // currently unavailable for SQL conversions
},
},
userContext: {
ideCategory: 'VSCODE',
operatingSystem: getOperatingSystem(),
product: 'CodeWhisperer',
},
})
} catch (err: any) {
// log error, but continue to show user diff.patch with results
Expand Down

0 comments on commit ac37b5b

Please sign in to comment.