mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
adding a comment
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user