Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VS Code: improve characters logger (#5855)
This update fixes data discrepancies in calculating the percentage of code written by Cody events by increasing the accuracy of the `CharactersLogger`. Previously, the logger was counting character changes not directly typed by the user. Now, document changes are grouped by sources, providing flexibility in handling this data as needed. The new `cody.characters` telemetry event structure: ```json { "normal_inserted": 0, "normal_deleted": 0, "undo_inserted": 0, "undo_deleted": 0, "redo_inserted": 0, "redo_deleted": 0, "windowNotFocused_inserted": 0, "windowNotFocused_deleted": 0, "nonVisibleDocument_inserted": 3, "nonVisibleDocument_deleted": 0, "inactiveSelection_inserted": 0, "inactiveSelection_deleted": 0, "rapidLargeChange_inserted": 0, "rapidLargeChange_deleted": 0 } ```
- Loading branch information