()
| 167 | } |
| 168 | |
| 169 | export async function markTelemetryNoticeSeen() { |
| 170 | const { config, configPath } = await readOrCreateTelemetryConfig(true) |
| 171 | if (!config || config.noticeVersion >= TELEMETRY_NOTICE_VERSION) { |
| 172 | return |
| 173 | } |
| 174 | |
| 175 | await writeTelemetryConfigFile(configPath, { |
| 176 | ...config, |
| 177 | noticeVersion: TELEMETRY_NOTICE_VERSION, |
| 178 | }) |
| 179 | } |
| 180 | |
| 181 | export async function setTelemetryEnabled(enabled: boolean) { |
| 182 | const { config, configPath } = await readOrCreateTelemetryConfig(true) |
no test coverage detected