Skip to content

Send language ID for read file telemetry - #334231

Merged
Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/tall-kingfisher-turquoise
Sep 3, 2026
Merged

Send language ID for read file telemetry#334231
Dirk Bäumer (dbaeumer) merged 1 commit into
mainfrom
dbaeumer/tall-kingfisher-turquoise

Conversation

@dbaeumer

Copy link
Copy Markdown
Member

Enhance telemetry by including the language ID of the document snapshot in various telemetry events related to file reading and region adjustments. This change improves the granularity of telemetry data collected for better insights.

Copilot AI balanced review requested due to automatic review settings September 3, 2026 11:06
@dbaeumer
Dirk Bäumer (dbaeumer) enabled auto-merge (squash) September 3, 2026 11:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Error telemetry omits the language ID even when a document snapshot was successfully created.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity extensions/​copilot/​src/​extension/​tools/​node/​readFileTool.tsxlanguageId is only populated on the success path. If snapshot creation succeeds but a later…
What changed in this PR

Adds document language IDs to read-file and region-adjustment telemetry.

Changes:

  • Adds languageId to three telemetry event schemas and payloads.
  • Passes document snapshots into region telemetry helpers.
File Description
extensions/​copilot/​src/​extension/​tools/​node/​readFileTool.tsx Enriches read-file telemetry with snapshot language IDs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread extensions/copilot/src/extension/tools/node/readFileTool.tsx
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 17badc0b Current: 78aafd83

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

Errored (8)

Fixtures that failed to render — no screenshot was produced.

sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunning/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostNotRunningAutoStart/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/HostDisconnected/Light — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Dark — unknown error (no image hash produced)
unknown error (no image hash produced)
sessions/remoteHostUnavailable/remoteHostUnavailableEmptyState/Connecting/Light — unknown error (no image hash produced)
unknown error (no image hash produced)

@dbaeumer
Dirk Bäumer (dbaeumer) merged commit ff8ef0b into main Sep 3, 2026
41 checks passed
@dbaeumer
Dirk Bäumer (dbaeumer) deleted the dbaeumer/tall-kingfisher-turquoise branch September 3, 2026 11:34
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants