Skip to content

Fix telemetryClient initialization crash issue #7021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025

Conversation

chunyu3
Copy link
Contributor

@chunyu3 chunyu3 commented Apr 17, 2025

Fix #7020

After adopt esbuild to build the library, the rollup changed, it will crash when use TelemetryReporter as constructor to initialize telemetry client. So update to use TelemetryReporter.default to refer to the TelemetryReporter class and construct the instance. And apply try-catch so that it will not crash the whole process when exception occur during telemetry client initialization.

@chunyu3 chunyu3 added the ide Issues for VS, VSCode, Monaco, etc. label Apr 17, 2025
Copy link
Contributor

github-actions bot commented Apr 17, 2025

All changed packages have been documented.

  • typespec-vscode
Show changes

typespec-vscode - fix ✏️

Fix crash when initialize telemetry client

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@chunyu3 chunyu3 added this pull request to the merge queue Apr 18, 2025
Merged via the queue into microsoft:main with commit 05cb3a1 Apr 18, 2025
22 checks passed
@chunyu3 chunyu3 deleted the fix7020 branch April 18, 2025 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide Issues for VS, VSCode, Monaco, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VSCode] Fail to activate typespec extension when enable telemetry
3 participants