Skip to content

Respond to update state changes to update the menu bar#313435

Merged
dmitrivMS merged 1 commit intomainfrom
dev/dmitriv/agents-update-menu
Apr 30, 2026
Merged

Respond to update state changes to update the menu bar#313435
dmitrivMS merged 1 commit intomainfrom
dev/dmitriv/agents-update-menu

Conversation

@dmitrivMS
Copy link
Copy Markdown
Contributor

Fixes #313104

Copilot AI review requested due to automatic review settings April 30, 2026 05:25
@dmitrivMS dmitrivMS added the install-update VS Code installation and upgrade system issues label Apr 30, 2026
@dmitrivMS dmitrivMS enabled auto-merge (squash) April 30, 2026 05:25
@dmitrivMS dmitrivMS self-assigned this Apr 30, 2026
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 Electron main-process menubar so that update-related menu items reflect the current updater state (e.g., showing “Restart to Update” when an update is ready), addressing the reported mismatch in the Update menu label.

Changes:

  • Listen to IUpdateService.onStateChange and trigger a menu rebuild to refresh update-related menu items.
Show a summary per file
File Description
src/vs/platform/menubar/electron-main/menubar.ts Rebuilds the application menu when update state changes so the Update menu items stay in sync with the updater state.

Copilot's findings

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

Comment thread src/vs/platform/menubar/electron-main/menubar.ts
@dmitrivMS dmitrivMS merged commit 75a8e67 into main Apr 30, 2026
30 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/agents-update-menu branch April 30, 2026 05:42
@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

install-update VS Code installation and upgrade system issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update menu says "check for updates"

3 participants