Skip to content

Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import#26007

Merged
rzhao271 merged 5 commits into
mainfrom
dependabot/npm_and_yarn/multi-347287d966
Jun 26, 2026
Merged

Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import#26007
rzhao271 merged 5 commits into
mainfrom
dependabot/npm_and_yarn/multi-347287d966

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 16, 2026

Copy link
Copy Markdown

Removes @opentelemetry/core. It's no longer used after updating ancestor dependency @vscode/extension-telemetry. These dependencies need to be updated together.

Removes @opentelemetry/core

Updates @vscode/extension-telemetry from 0.8.4 to 1.5.2

@vscode/extension-telemetry v1.5.2 changed TelemetryReporter from a default export to a named export. This PR also updates the import and runtime access in the extension source to match:

  • src/client/telemetry/index.ts and src/client/browser/extension.ts: changed import TelemetryReporter from '@vscode/extension-telemetry' to import { TelemetryReporter } from '@vscode/extension-telemetry' and updated require('@vscode/extension-telemetry').default to require('@vscode/extension-telemetry').TelemetryReporter.
  • gulpfile.js: strip ANSI color escape codes from webpack stdout before checking for ERROR in / WARNING in patterns, so webpack build errors are correctly detected instead of being silently swallowed.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jun 16, 2026
Yoyokrazy
Yoyokrazy previously approved these changes Jun 16, 2026
TylerLeonhardt
TylerLeonhardt previously approved these changes Jun 16, 2026
Removes [@opentelemetry/core](https://github.com/open-telemetry/opentelemetry-js). It's no longer used after updating ancestor dependency [@vscode/extension-telemetry](https://github.com/Microsoft/vscode-extension-telemetry). These dependencies need to be updated together.


Removes `@opentelemetry/core`

Updates `@vscode/extension-telemetry` from 0.8.4 to 1.5.2
- [Release notes](https://github.com/Microsoft/vscode-extension-telemetry/releases)
- [Commits](microsoft/vscode-extension-telemetry@v0.8.4...v1.5.2)

---
updated-dependencies:
- dependency-name: "@opentelemetry/core"
  dependency-version:
  dependency-type: indirect
- dependency-name: "@vscode/extension-telemetry"
  dependency-version: 1.5.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot dismissed stale reviews from TylerLeonhardt and Yoyokrazy via 78c6617 June 19, 2026 20:54
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/multi-347287d966 branch from aff3ba4 to 78c6617 Compare June 19, 2026 20:54
@rzhao271 rzhao271 added this to the 1.126.0 milestone Jun 19, 2026
@rzhao271 rzhao271 added no-changelog No news entry required skip-issue-check labels Jun 19, 2026
Copilot AI changed the title Bump @opentelemetry/core and @vscode/extension-telemetry Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import Jun 19, 2026
Copilot AI requested a review from rzhao271 June 19, 2026 22:20
@rzhao271 rzhao271 added the skip tests Updates to tests unnecessary label Jun 19, 2026
@rzhao271 rzhao271 enabled auto-merge (squash) June 19, 2026 22:54
alexdima
alexdima previously approved these changes Jun 19, 2026
rzhao271
rzhao271 previously approved these changes Jun 22, 2026
@rzhao271 rzhao271 modified the milestones: 1.126.0, 1.127.0 Jun 22, 2026
The dependabot PR bumped @vscode/extension-telemetry from ^0.8.4 to
^1.5.2. The old version (0.8.4) exported TelemetryReporter as a default
export (exports.default), while the new version (1.5.2) exports it as a
named export (exports.TelemetryReporter).

The production code in telemetry/index.ts was correctly updated to use
the named export (.TelemetryReporter), but the test mocks still used
{ default: Reporter } causing "TypeError: Reporter is not a constructor"
in 5 unit tests.

Updated all rewiremock calls from:
  rewiremock('@vscode/extension-telemetry').with({ default: Reporter })
to:
  rewiremock('@vscode/extension-telemetry').with({ TelemetryReporter: Reporter })
Copilot AI dismissed stale reviews from rzhao271 and alexdima via 11d71fd June 26, 2026 17:39
Copilot AI requested a review from rzhao271 June 26, 2026 17:40
@rzhao271 rzhao271 merged commit 66ff9a4 into main Jun 26, 2026
49 of 85 checks passed
@rzhao271 rzhao271 deleted the dependabot/npm_and_yarn/multi-347287d966 branch June 26, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code no-changelog No news entry required skip tests Updates to tests unnecessary skip-issue-check

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants