Skip to content

Commit

Permalink
fix: log default command by name
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix committed Sep 27, 2023
1 parent f9e98a6 commit 521c797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/src/custom-prompts/CommandsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class CommandsController implements VsCodeCommandsController, vscode.Disp
}

// Log custom command usage
const commandType = myPrompt?.type === 'default' ? 'default' : 'custom'
const commandType = myPrompt?.type === 'default' ? myPrompt.slashCommand.replace('/', '') : 'custom'
this.telemetryService.log(`CodyVSCodeExtension:command:${commandType}:executed`)

return myPrompt?.prompt || ''
Expand Down

0 comments on commit 521c797

Please sign in to comment.