Skip to content

Commit af5547f

Browse files
Use correct values of telemtetry level
1 parent a506276 commit af5547f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/common/vscode/telemetry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function isGlobalTelemetryEnabled(): boolean {
309309
// If a value for "telemetry.telemetryLevel" is provided, then use that
310310
const telemetryLevel: string | undefined = GLOBAL_TELEMETRY_LEVEL.getValue();
311311
if (telemetryLevel !== undefined) {
312-
return telemetryLevel === "error" || telemetryLevel === "on";
312+
return telemetryLevel !== "off";
313313
}
314314

315315
// Otherwise fall back to the deprecated "telemetry.enableTelemetry" setting

0 commit comments

Comments
 (0)