ZIm/docs/src
Joseph T. Lyons b6189b05f9
Add telemetry for supermaven (#11821)
Data migration plan:

- [X] Make a duplicate table of `copilot_events`
    - Name: `inline_completion_events`
    - Omit `suggestion_id` column
- [X-reverted-skipping] In collab, continue to match on copilot_events,
but simply stuff their data into inline_completion_events, to forward it
to the new table
- [skipping] Once collab is deployed, ensure no events are being sent to
copilot_events, migrate `copilot_events` to new table via a transaction
- [skipping] Delete `copilot_events` table

---

- [X] Locally test that copilot events sent from old clients get put
into inline_completions_table
- [X] Locally test that copilot events and supermaven events sent from
new clients get put into inline_completions_table

---

- [X] Why are discard events being spammed?
- A:
8d4315712b/crates/editor/src/editor.rs (L2147)


![scr-20240514-pqmg](https://github.com/zed-industries/zed/assets/19867440/e51e7ae4-21b8-47a2-bfaa-f68fb355e409)

This will throw off the past results for accepted / dismissed that I was
wanting to use to evaluate Supermaven quality, by comparing its rate
with copilot's rate.

I'm not super thrilled with this fix, but I think it'll do. In the
`supermaven_completions_provider`, we check if there's a `completion_id`
before sending either an accepted or discard completion event. I don't
see a similar construct in the `copilot_completions_provider` to
piggyback off of, so I begrudgingly introduced
`should_allow_event_to_send` and had it follow the same pattern that
`completion_id` does. Maybe there's a better way?

---

Adds events to supermaven suggestions. Makes "CopilotEvents" generic ->
"InlineCompletionEvents".

Release Notes:

- N/A
2024-05-16 17:18:32 -04:00
..
development Fix small markdown typo in Windows docs (#11888) 2024-05-16 11:44:48 -07:00
languages docs: Standardize "Note" blockquote usage (#11724) 2024-05-13 09:02:44 -04:00
adding-new-languages.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
additional-learning-materials.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
assistant-panel.md Add prompt library (#11910) 2024-05-16 16:55:54 -04:00
channels.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
code-of-conduct.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
collaboration.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
configuring-zed.md editor: Current line highlight options (#11710) 2024-05-13 22:02:12 +03:00
contribute-to-zed.md docs: Fix some typos (#11443) 2024-05-06 11:45:17 -04:00
conversations.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
developing-zed.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
feedback-and-support.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
getting-started.md Fix a link to Zed configuring docs (#11739) 2024-05-14 17:15:14 -04:00
key-bindings.md Fix key-bindings.md example (#11415) 2024-05-13 09:09:59 -07:00
remote-development.md cli: Support --foreground for debugging (#11819) 2024-05-14 16:05:40 -06:00
SUMMARY.md update docs content (#11374) 2024-05-03 16:24:04 -06:00
system-requirements.md docs: Update system requirements to note Linux and Windows can be built from source. (#11438) 2024-05-06 11:01:00 -04:00
tasks.md tasks: minor fixes to docs (#11862) 2024-05-15 16:32:57 +02:00
telemetry.md Add telemetry for supermaven (#11821) 2024-05-16 17:18:32 -04:00
themes.md docs: Update "Themes" page (#11379) 2024-05-03 19:05:29 -04:00
vim.md Restore vim docs (#11491) 2024-05-07 09:24:00 -06:00