@@ -31,13 +31,19 @@ async function initializeExtension(_operationId: string, context: vscode.Extensi
3131 // context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.runtime", new JavaRuntimeViewSerializer()));
3232 // context.subscriptions.push(vscode.window.registerWebviewPanelSerializer("java.gettingStarted", new JavaGettingStartedViewSerializer()));
3333
34- scheduleAction ( "showFirstView" , true ) . then ( ( ) => {
35- presentFirstView ( context ) ;
36- } ) ;
34+ const config = vscode . workspace . getConfiguration ( "java.help" ) ;
35+
36+ if ( config . get ( "firstView" ) !== HelpViewType . None ) {
37+ scheduleAction ( "showFirstView" , true ) . then ( ( ) => {
38+ presentFirstView ( context ) ;
39+ } ) ;
40+ }
3741
38- scheduleAction ( "showReleaseNotes" ) . then ( ( ) => {
39- showReleaseNotesOnStart ( context ) ;
40- } ) ;
42+ if ( config . get ( "showReleaseNotes" ) ) {
43+ scheduleAction ( "showReleaseNotes" ) . then ( ( ) => {
44+ showReleaseNotesOnStart ( context ) ;
45+ } ) ;
46+ }
4147
4248 if ( ! await validateJavaRuntime ( ) ) {
4349 scheduleAction ( "showJdkState" , true , true ) . then ( ( ) => {
@@ -55,11 +61,15 @@ async function presentFirstView(context: vscode.ExtensionContext) {
5561
5662 const config = vscode . workspace . getConfiguration ( "java.help" ) ;
5763 const firstView = config . get ( "firstView" ) ;
58- if ( firstView === HelpViewType . GettingStarted ) {
59- await showGettingStartedView ( context ) ;
60- } else {
61- await showOverviewPageOnActivation ( context ) ;
62- }
64+ switch ( firstView ) {
65+ case HelpViewType . None :
66+ break ;
67+ case HelpViewType . GettingStarted :
68+ await showGettingStartedView ( context ) ;
69+ break ;
70+ default :
71+ await showOverviewPageOnActivation ( context ) ;
72+ }
6373}
6474
6575async function showExtensionGuide ( context : vscode . ExtensionContext ) {
0 commit comments