@@ -73,7 +73,7 @@ import { AccessibilityVerbositySettingId } from '../../accessibility/browser/acc
73
73
import { AccessibleViewAction } from '../../accessibility/browser/accessibleViewActions.js' ;
74
74
import { KeybindingLabel } from '../../../../base/browser/ui/keybindingLabel/keybindingLabel.js' ;
75
75
import { ScrollbarVisibility } from '../../../../base/common/scrollable.js' ;
76
- import { IGettingStartedExperimentService } from './gettingStartedExpService .js' ;
76
+ import { startupExpContext , StartupExperimentGroup } from '../../../services/coreExperimentation/common/coreExperimentationService .js' ;
77
77
78
78
const SLIDE_TRANSITION_TIME_MS = 250 ;
79
79
const configurationKey = 'workbench.startupEditor' ;
@@ -193,7 +193,6 @@ export class GettingStartedPage extends EditorPane {
193
193
@IWebviewService private readonly webviewService : IWebviewService ,
194
194
@IWorkspaceContextService private readonly workspaceContextService : IWorkspaceContextService ,
195
195
@IAccessibilityService private readonly accessibilityService : IAccessibilityService ,
196
- @IGettingStartedExperimentService private readonly gettingStartedExperimentService : IGettingStartedExperimentService ,
197
196
) {
198
197
199
198
super ( GettingStartedPage . ID , group , telemetryService , themeService , storageService ) ;
@@ -960,10 +959,11 @@ export class GettingStartedPage extends EditorPane {
960
959
const firstSessionDateString = this . storageService . get ( firstSessionDateStorageKey , StorageScope . APPLICATION ) || new Date ( ) . toUTCString ( ) ;
961
960
const daysSinceFirstSession = ( ( + new Date ( ) ) - ( + new Date ( firstSessionDateString ) ) ) / 1000 / 60 / 60 / 24 ;
962
961
const fistContentBehaviour = daysSinceFirstSession < 1 ? 'openToFirstCategory' : 'index' ;
962
+ const startupExpValue = startupExpContext . getValue ( this . contextService ) ;
963
963
964
- if ( fistContentBehaviour === 'openToFirstCategory' ) {
965
- const exp = this . gettingStartedExperimentService . getCurrentExperiment ( ) ;
966
- const first = exp ?. walkthroughId ? this . gettingStartedService . getWalkthrough ( exp . walkthroughId ) : this . gettingStartedCategories . filter ( c => ! c . when || this . contextService . contextMatchesRules ( c . when ) ) [ 0 ] ;
964
+ if ( fistContentBehaviour === 'openToFirstCategory' && ( ( startupExpValue === '' || startupExpValue === StartupExperimentGroup . Control ) ) ) {
965
+ startupExpContext . bindTo ( this . contextService ) . reset ( ) ;
966
+ const first = this . gettingStartedCategories . filter ( c => ! c . when || this . contextService . contextMatchesRules ( c . when ) ) [ 0 ] ;
967
967
if ( first ) {
968
968
this . hasScrolledToFirstCategory = true ;
969
969
this . currentWalkthrough = first ;
0 commit comments