(env: NodeJS.ProcessEnv = process.env)
| 87 | * notice. `DO_NOT_TRACK` uses the same truthiness the telemetry opt-out does. |
| 88 | */ |
| 89 | export function updateCheckDisabled(env: NodeJS.ProcessEnv = process.env): boolean { |
| 90 | return envTruthy(env.CODEGRAPH_NO_UPDATE_CHECK) || envTruthy(env.DO_NOT_TRACK); |
| 91 | } |
| 92 | |
| 93 | export function updateCheckCachePath(dir: string): string { |
| 94 | return path.join(dir, 'update-check.json'); |
no test coverage detected