Skip to content

Commit 90629f0

Browse files
committed
Make Insiders target population refer to VS code insiders
1 parent d1d125a commit 90629f0

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/client/common/experiments/service.ts

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { inject, injectable } from 'inversify';
77
import { l10n } from 'vscode';
8-
import { getExperimentationService, IExperimentationService } from 'vscode-tas-client';
8+
import { getExperimentationService, IExperimentationService, TargetPopulation } from 'vscode-tas-client';
99
import { traceLog } from '../../logging';
1010
import { sendTelemetryEvent } from '../../telemetry';
1111
import { EventName } from '../../telemetry/constants';
@@ -17,16 +17,6 @@ import { ExperimentationTelemetry } from './telemetry';
1717
const EXP_MEMENTO_KEY = 'VSCode.ABExp.FeatureData';
1818
const EXP_CONFIG_ID = 'vscode';
1919

20-
/**
21-
* We're defining a custom TargetPopulation specific for the Python extension.
22-
* This is done so the exp framework is able to differentiate between
23-
* VS Code insiders/public users and Python extension insiders (pre-release)/public users.
24-
*/
25-
export enum TargetPopulation {
26-
Insiders = 'python-insider',
27-
Public = 'python-public',
28-
}
29-
3020
@injectable()
3121
export class ExperimentService implements IExperimentService {
3222
/**
@@ -73,8 +63,8 @@ export class ExperimentService implements IExperimentService {
7363
}
7464

7565
let targetPopulation: TargetPopulation;
76-
77-
if (this.appEnvironment.extensionChannel === 'insiders') {
66+
// if running in VS Code Insiders, use the Insiders target population
67+
if (this.appEnvironment.channel === 'insiders') {
7868
targetPopulation = TargetPopulation.Insiders;
7969
} else {
8070
targetPopulation = TargetPopulation.Public;

0 commit comments

Comments
 (0)