Commit ef30469
Fix
`@vscode/extension-telemetry` exports `TelemetryReporter` as a named
class with no default export. We were importing it as a default, which
resolves to the module namespace object rather than the class, so using
it as the `telemetryReporter` parameter type tripped `tsc --noEmit` with
`error TS2709: Cannot use namespace 'TelemetryReporter' as a type`.
`npm run compile` uses esbuild, which doesn't type-check, so this slipped
through CI. This aligns `session.ts` with the named import already used
in `extension.ts`. The symbol is only used as a type here, so there's no
runtime change.
Drafted by Copilot (Claude Opus 4.8).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>TelemetryReporter import to use named export in session.ts
1 parent 0e0d21e commit ef30469
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
0 commit comments