Files
vscode/extensions/copilot/src/lib
ead09c0d57 Forward CAPI assignment context to core telemetry via internal command (#327375)
* Forward CAPI assignment context to core telemetry via internal command

Register a private '_telemetry.setExperimentProperty' command in the
workbench that calls ITelemetryService.setExperimentProperty(). The
Copilot extension calls this command when it receives CAPI flight
assignments, so they appear on all core telemetry events from the
current window (same scope as TAS abexp.assignmentcontext).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Harden CAPI telemetry command surface

- Replace generic _telemetry.setExperimentProperty bridge with
  _telemetry.setCapiAssignmentContext
- Hardcode capi.assignmentcontext as the only settable property
- Validate assignment-context format and size before trusting input
- Update Copilot forwarding call to use the narrowed command

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* telemetry bridge for clarity and testability

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Vijay Upadya <41652029+vijayupadya@users.noreply.github.com>
2026-07-27 23:53:33 +00:00
..