Skip to content

Add eslint rule for telemetry props that override common props#303592

Merged
roblourens merged 1 commit intomainfrom
roblou/increased-wallaby
Mar 20, 2026
Merged

Add eslint rule for telemetry props that override common props#303592
roblourens merged 1 commit intomainfrom
roblou/increased-wallaby

Conversation

@roblourens
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 20, 2026 18:58
@roblourens roblourens self-assigned this Mar 20, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 20, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new repo-local ESLint rule to prevent telemetry event payloads from defining keys that collide with VS Code’s “common properties” (which are automatically injected into every telemetry event by the telemetry pipeline).

Changes:

  • Enable a new local ESLint rule for src/**/*.ts to warn on common telemetry property names in event data.
  • Add .eslint-plugin-local/code-no-telemetry-common-property.ts, which inspects publicLog* calls and flags reserved property keys.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eslint.config.js Enables local/code-no-telemetry-common-property (warn) for src/**/*.ts.
.eslint-plugin-local/code-no-telemetry-common-property.ts Implements the ESLint rule that detects reserved/common telemetry properties in inline event payload objects.

@roblourens roblourens marked this pull request as ready for review March 20, 2026 19:31
@roblourens roblourens enabled auto-merge (squash) March 20, 2026 19:31
@roblourens roblourens merged commit c459317 into main Mar 20, 2026
23 checks passed
@roblourens roblourens deleted the roblou/increased-wallaby branch March 20, 2026 19:35
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