Commit 9b4a931
fix(cloud): respect user telemetry opt-out in CloudTelemetryClient
CloudTelemetryClient was ignoring the didUserOptIn parameter and always
returning true from isTelemetryEnabled(), causing telemetry to be sent
even when users disabled it. Now checks VS Code global telemetry level
and stores the opt-in state, consistent with PostHogTelemetryClient.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d26b04c commit 9b4a931
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
261 | 272 | | |
262 | 273 | | |
263 | | - | |
| 274 | + | |
264 | 275 | | |
265 | 276 | | |
266 | 277 | | |
| |||
0 commit comments