Skip to content

Commit 8983c3c

Browse files
authored
prevent welcome page from showing when auxiliary bar is maximized (microsoft#253430)
prevent welcome page from showing when auxiliary bar is maximized
1 parent cc32c43 commit 8983c3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/startupPage.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { TerminalCommandId } from '../../terminal/common/terminal.js';
3131
import { ILogService } from '../../../../platform/log/common/log.js';
3232
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
3333
import { startupExpContext, StartupExperimentGroup } from '../../../services/coreExperimentation/common/coreExperimentationService.js';
34+
import { AuxiliaryBarMaximizedContext } from '../../../common/contextkeys.js';
3435

3536
export const restoreWalkthroughsConfigurationKey = 'workbench.welcomePage.restorableWalkthroughs';
3637
export type RestoreWalkthroughsConfigurationValue = { folder: string; category?: string; step?: string };
@@ -112,6 +113,11 @@ export class StartupPageRunnerContribution extends Disposable implements IWorkbe
112113
// Wait for resolving startup editor until we are restored to reduce startup pressure
113114
await this.lifecycleService.when(LifecyclePhase.Restored);
114115

116+
if (AuxiliaryBarMaximizedContext.getValue(this.contextKeyService)) {
117+
// If the auxiliary bar is maximized, we do not show the welcome page.
118+
return;
119+
}
120+
115121
// Always open Welcome page for first-launch, no matter what is open or which startupEditor is set.
116122
if (
117123
this.productService.enableTelemetry

0 commit comments

Comments
 (0)