@@ -66,8 +66,6 @@ export class LspNotebooksExperiment implements IExtensionSingleActivationService
6666 this . isInExperiment = false ;
6767 if ( languageServerType !== LanguageServerType . Node ) {
6868 traceLog ( `LSP Notebooks experiment is disabled -- not using Pylance` ) ;
69- } else if ( ! isInTreatmentGroup ) {
70- traceLog ( `LSP Notebooks experiment is disabled -- not in treatment group` ) ;
7169 } else if ( ! LspNotebooksExperiment . isJupyterInstalled ( ) ) {
7270 traceLog ( `LSP Notebooks experiment is disabled -- Jupyter disabled or not installed` ) ;
7371 } else if ( ! LspNotebooksExperiment . jupyterSupportsNotebooksExperiment ( ) ) {
@@ -76,12 +74,14 @@ export class LspNotebooksExperiment implements IExtensionSingleActivationService
7674 traceLog ( `LSP Notebooks experiment is disabled -- Pylance disabled or not installed` ) ;
7775 } else if ( ! LspNotebooksExperiment . pylanceSupportsNotebooksExperiment ( ) ) {
7876 traceLog ( `LSP Notebooks experiment is disabled -- Pylance does not support experiment` ) ;
77+ } else if ( ! isInTreatmentGroup ) {
78+ traceLog ( `LSP Notebooks experiment is disabled -- not in treatment group` ) ;
79+ // to avoid scorecard SRMs, we're also triggering the telemetry for users who meet
80+ // the criteria to experience LSP notebooks, but may be in the control group.
81+ sendTelemetryEvent ( EventName . PYTHON_EXPERIMENTS_LSP_NOTEBOOKS ) ;
7982 } else {
8083 this . isInExperiment = true ;
8184 traceLog ( `LSP Notebooks experiment is enabled` ) ;
82- }
83-
84- if ( this . isInExperiment ) {
8585 sendTelemetryEvent ( EventName . PYTHON_EXPERIMENTS_LSP_NOTEBOOKS ) ;
8686 }
8787
0 commit comments