@@ -7,7 +7,7 @@ import { initialize as initUtils } from "./utils";
77import { initialize as initCommands } from "./commands" ;
88import { initialize as initRecommendations } from "./recommendation" ;
99import { showReleaseNotesOnStart , HelpViewType } from "./misc" ;
10- import { getExpService , initialize as initExp } from "./exp" ;
10+ import { initialize as initExp } from "./exp" ;
1111import { OverviewViewSerializer } from "./overview" ;
1212import { JavaRuntimeViewSerializer , validateJavaRuntime } from "./java-runtime" ;
1313import { scheduleAction } from "./utils/scheduler" ;
@@ -19,7 +19,7 @@ import { initFormatterSettingsEditorProvider } from "./formatter-settings";
1919import { initRemoteProfileProvider } from "./formatter-settings/RemoteProfileProvider" ;
2020import { CodeActionProvider } from "./providers/CodeActionProvider" ;
2121import { KEY_IS_WELCOME_PAGE_VIEWED , KEY_SHOW_WHEN_USING_JAVA } from "./utils/globalState" ;
22- import { TreatmentVariables } from "./exp/TreatmentVariables " ;
22+ import { isWalkthroughEnabled } from "./utils/walkthrough " ;
2323
2424export async function activate ( context : vscode . ExtensionContext ) {
2525 syncState ( context ) ;
@@ -36,7 +36,7 @@ async function initializeExtension(_operationId: string, context: vscode.Extensi
3636 initCommands ( context ) ;
3737 initRecommendations ( context ) ;
3838
39- context . subscriptions . push ( vscode . languages . registerCodeActionsProvider ( { scheme : "file" , language : "java" , pattern : "**/*.java" } , new CodeActionProvider ( ) ) ) ;
39+ context . subscriptions . push ( vscode . languages . registerCodeActionsProvider ( { scheme : "file" , language : "java" , pattern : "**/*.java" } , new CodeActionProvider ( ) ) ) ;
4040
4141 // webview serializers to restore pages
4242 context . subscriptions . push ( vscode . window . registerWebviewPanelSerializer ( "java.extGuide" , new JavaExtGuideViewSerializer ( ) ) ) ;
@@ -49,7 +49,7 @@ async function initializeExtension(_operationId: string, context: vscode.Extensi
4949 const config = vscode . workspace . getConfiguration ( "java.help" ) ;
5050
5151 // for control group where walkthrough is not enabled, present first view for once.
52- const walkthroughEnabled = getExpService ( ) . getTreatmentVariable < boolean > ( TreatmentVariables . VSCodeConfig , TreatmentVariables . JavaWalkthroughEnabled ) ;
52+ const walkthroughEnabled = isWalkthroughEnabled ( ) ;
5353 if ( walkthroughEnabled === false && ! context . globalState . get ( KEY_IS_WELCOME_PAGE_VIEWED ) ) {
5454 presentFirstView ( context ) ;
5555 context . globalState . update ( KEY_IS_WELCOME_PAGE_VIEWED , true )
0 commit comments