Skip to content

sessions - hide title bar actions when welcome overlay shows#297958

Merged
bpasero merged 2 commits intomainfrom
ben/copilot-worktree-2026-02-26T10-24-08
Feb 26, 2026
Merged

sessions - hide title bar actions when welcome overlay shows#297958
bpasero merged 2 commits intomainfrom
ben/copilot-worktree-2026-02-26T10-24-08

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Feb 26, 2026

No description provided.

@bpasero bpasero added this to the February 2026 milestone Feb 26, 2026
@bpasero bpasero self-assigned this Feb 26, 2026
Copilot AI review requested due to automatic review settings February 26, 2026 11:10
@bpasero bpasero changed the title feat - add SessionsWelcomeVisibleContext for overlays sessions - hide title bar actions when welcome overlay shows Feb 26, 2026
@bpasero bpasero enabled auto-merge (squash) February 26, 2026 11:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new sessions-specific context key to indicate when the Sessions welcome overlay is currently shown, and uses it to suppress title bar/menu actions that shouldn’t be available while the overlay is up.

Changes:

  • Introduce SessionsWelcomeVisibleContext (sessionsWelcomeVisible) in sessions context keys.
  • Set/unset the context key while the welcome overlay is active.
  • Gate multiple Sessions title bar menu entries behind !sessionsWelcomeVisible.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/vs/sessions/contrib/welcome/browser/welcome.contribution.ts Binds and toggles the new context key while the welcome overlay is shown.
src/vs/sessions/contrib/terminal/browser/sessionsTerminalContribution.ts Hides “Open Terminal” title bar action when the welcome overlay is visible.
src/vs/sessions/contrib/sessions/browser/sessionsTitleBarWidget.ts Hides the Sessions command-center submenu entry when the welcome overlay is visible.
src/vs/sessions/contrib/chat/browser/runScriptAction.ts Hides the “Run” title bar split-button submenu when the welcome overlay is visible.
src/vs/sessions/contrib/chat/browser/chat.contribution.ts Hides “Open in VS Code” title bar action when the welcome overlay is visible.
src/vs/sessions/common/contextkeys.ts Defines SessionsWelcomeVisibleContext raw context key.
src/vs/sessions/browser/layoutActions.ts Hides sidebar toggle title bar actions when the welcome overlay is visible.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bpasero bpasero merged commit 9c4cc0e into main Feb 26, 2026
20 checks passed
@bpasero bpasero deleted the ben/copilot-worktree-2026-02-26T10-24-08 branch February 26, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants