Skip to content

[VSCode] Fail to activate typespec extension when enable telemetry #7020

Closed
@chunyu3

Description

@chunyu3

The typespec extension activate failed when we set the telemetry key and enable the telemetry.

Image

Root cause:
Typespec-vscode now use esbuild to build the library, and in that case, the TelemetryReporter is namespace, not constructor and cannot construct the instance. Then the process crash.

this._client = new (TelemetryReporter as any)(key);

Metadata

Metadata

Assignees

Labels

ideIssues for VS, VSCode, Monaco, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions