Use correct values of telemtetry level

This commit is contained in:
Robert
2023-09-15 16:25:03 +01:00
parent a506276635
commit af5547fb77

View File

@@ -309,7 +309,7 @@ function isGlobalTelemetryEnabled(): boolean {
// If a value for "telemetry.telemetryLevel" is provided, then use that
const telemetryLevel: string | undefined = GLOBAL_TELEMETRY_LEVEL.getValue();
if (telemetryLevel !== undefined) {
return telemetryLevel === "error" || telemetryLevel === "on";
return telemetryLevel !== "off";
}
// Otherwise fall back to the deprecated "telemetry.enableTelemetry" setting