diff --git a/src/vs/platform/telemetry/browser/errorTelemetry.ts b/src/vs/platform/telemetry/browser/errorTelemetry.ts index 48bb12478c4..5646d6f82b1 100644 --- a/src/vs/platform/telemetry/browser/errorTelemetry.ts +++ b/src/vs/platform/telemetry/browser/errorTelemetry.ts @@ -3,6 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +import { ErrorNoTelemetry } from 'vs/base/common/errors'; import { toDisposable } from 'vs/base/common/lifecycle'; import { globals } from 'vs/base/common/platform'; import BaseErrorTelemetry, { ErrorEvent } from 'vs/platform/telemetry/common/errorTelemetry'; @@ -37,6 +38,11 @@ export default class ErrorTelemetry extends BaseErrorTelemetry { }; if (err) { + // If it's the no telemetry error it doesn't get logged + if (err instanceof ErrorNoTelemetry) { + return; + } + let { name, message, stack } = err; data.uncaught_error_name = name; if (message) {