Skip to content

Hide Update, Sign-In and Open in Agents title bar items in Zen mode#313430

Merged
dmitrivMS merged 5 commits into
mainfrom
dev/dmitriv/update-zen-mode
Apr 30, 2026
Merged

Hide Update, Sign-In and Open in Agents title bar items in Zen mode#313430
dmitrivMS merged 5 commits into
mainfrom
dev/dmitriv/update-zen-mode

Conversation

@dmitrivMS
Copy link
Copy Markdown
Contributor

@dmitrivMS dmitrivMS commented Apr 30, 2026

Fixes #311922

Also hiding Open in Agents and Sign in buttons in Zen mode since they are very similar and don't make a lot of sense in Zen context.

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 30, 2026 04:42
Copy link
Copy Markdown
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

Updates the workbench update title bar indicator so it is not shown while Zen Mode is enabled, aligning with Zen Mode’s “minimal distractions” goal (Fixes #311922).

Changes:

  • Adds a Zen Mode listener to suppress the update title bar context key while Zen Mode is active.
  • Introduces a zenMode flag that short-circuits onStateChange() to hide the indicator in Zen Mode.
Show a summary per file
File Description
src/vs/workbench/contrib/update/browser/updateTitleBarEntry.ts Hooks Zen Mode changes into update indicator visibility logic and disables the indicator while Zen Mode is active.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/vs/workbench/contrib/update/browser/updateTitleBarEntry.ts Outdated
@dmitrivMS dmitrivMS changed the title Hide Update indicator in Zen mode Hide Update, Sign-In and Open in Agents title bar items in Zen mode Apr 30, 2026
@dmitrivMS dmitrivMS added install-update VS Code installation and upgrade system issues agents-window labels Apr 30, 2026
@dmitrivMS dmitrivMS marked this pull request as ready for review April 30, 2026 05:43
@dmitrivMS dmitrivMS enabled auto-merge (squash) April 30, 2026 05:44
@dmitrivMS dmitrivMS merged commit 1cd6969 into main Apr 30, 2026
26 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/update-zen-mode branch April 30, 2026 06:06
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents-window install-update VS Code installation and upgrade system issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update button should be hidden from the title bar in Zen Mode

3 participants