Skip to content

Commit

Permalink
Experiments should not block on telemetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Apr 2, 2020
1 parent aa23403 commit 2b42457
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/2 Fixes/10008.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Experiments no longer block on telemetry.
6 changes: 3 additions & 3 deletions src/client/common/experiments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { inject, injectable, named, optional } from 'inversify';
import { parse } from 'jsonc-parser';
import * as path from 'path';
import { IConfigurationService, IHttpClient } from '../common/types';
import { isTelemetryDisabled, sendTelemetryEvent } from '../telemetry';
import { sendTelemetryEvent } from '../telemetry';
import { EventName } from '../telemetry/constants';
import { IApplicationEnvironment, IWorkspaceService } from './application/types';
import { EXTENSION_ROOT_DIR, STANDARD_OUTPUT_CHANNEL } from './constants';
Expand Down Expand Up @@ -116,7 +116,7 @@ export class ExperimentsManager implements IExperimentsManager {

@swallowExceptions('Failed to activate experiments')
public async activate(): Promise<void> {
if (this.activatedOnce || isTelemetryDisabled(this.workspaceService)) {
if (this.activatedOnce) {
return;
}
this.activatedOnce = true;
Expand Down Expand Up @@ -336,4 +336,4 @@ export class ExperimentsManager implements IExperimentsManager {
this._experimentsOptedInto = this._experimentsOptedInto.filter((exp) => exp !== '');
this._experimentsOptedOutFrom = this._experimentsOptedOutFrom.filter((exp) => exp !== '');
}
}
}

0 comments on commit 2b42457

Please sign in to comment.