Skip to content

Commit

Permalink
Edit: Log telemetry events for fix separately (#3506)
Browse files Browse the repository at this point in the history
  • Loading branch information
umpox authored Mar 22, 2024
1 parent ab33a66 commit 57964a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion vscode/src/edit/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ export class EditManager implements vscode.Disposable {
// Log the default edit command name for doc intent or test mode
const isDocCommand = configuration.intent === 'doc' ? 'doc' : undefined
const isUnitTestCommand = configuration.intent === 'test' ? 'test' : undefined
const eventName = isDocCommand ?? isUnitTestCommand ?? 'edit'
const isFixCommand = configuration.intent === 'fix' ? 'fix' : undefined
const eventName = isDocCommand ?? isUnitTestCommand ?? isFixCommand ?? 'edit'
telemetryService.log(
`CodyVSCodeExtension:command:${eventName}:executed`,
{ source },
Expand Down
2 changes: 1 addition & 1 deletion vscode/test/e2e/code-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test.extend<ExpectedEvents>({
test.extend<ExpectedEvents>({
// list of events we expect this test to log, add to this list as needed
expectedEvents: [
'CodyVSCodeExtension:command:edit:executed',
'CodyVSCodeExtension:command:fix:executed',
'CodyVSCodeExtension:fixupResponse:hasCode',
'CodyVSCodeExtension:fixup:applied',
],
Expand Down

0 comments on commit 57964a9

Please sign in to comment.