adding a comment

This commit is contained in:
Aiday Marlen Kyzy
2023-08-18 14:40:14 +02:00
parent 1f86585b9b
commit 03f09a238c

View File

@@ -250,6 +250,7 @@ export class DiagnosticsManager extends Disposable {
this._pendingUpdates = new ResourceMap<any>(undefined, { onCaseInsensitiveFileSystem });
this._currentDiagnostics = this._register(vscode.languages.createDiagnosticCollection(owner));
// Here we are selecting only 1 user out of 1000 to send telemetry diagnostics
if (Math.random() * 1000 <= 1 || configuration.enableDiagnosticsTelemetry) {
this._register(new DiagnosticsTelemetryManager(telemetryReporter, this.getDiagnostics.bind(this)));
}