(context: TelemetryEnablementContext)
| 90 | } |
| 91 | |
| 92 | export function shouldEnableTelemetry(context: TelemetryEnablementContext): boolean { |
| 93 | // Telemetry is disabled by explicit env vars, CI, or test environments |
| 94 | if (isTelemetryDisabledByEnv(context.env)) { |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | // Otherwise, telemetry is enabled (including dev mode) |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | async function getElectronIsPackaged(isElectron: boolean): Promise<boolean | null> { |
| 103 | if (!isElectron) { |
no test coverage detected