55
66import { inject , injectable } from 'inversify' ;
77import { l10n } from 'vscode' ;
8- import { getExperimentationService , IExperimentationService } from 'vscode-tas-client' ;
8+ import { getExperimentationService , IExperimentationService , TargetPopulation } from 'vscode-tas-client' ;
99import { traceLog } from '../../logging' ;
1010import { sendTelemetryEvent } from '../../telemetry' ;
1111import { EventName } from '../../telemetry/constants' ;
@@ -17,16 +17,6 @@ import { ExperimentationTelemetry } from './telemetry';
1717const EXP_MEMENTO_KEY = 'VSCode.ABExp.FeatureData' ;
1818const 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 ( )
3121export 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