Skip to content

Agents - cleanup Changes view menus/actions#315014

Merged
lszomoru merged 2 commits into
mainfrom
lszomoru/rubber-tarantula
May 7, 2026
Merged

Agents - cleanup Changes view menus/actions#315014
lszomoru merged 2 commits into
mainfrom
lszomoru/rubber-tarantula

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented May 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 7, 2026 14:01
@lszomoru lszomoru enabled auto-merge (squash) May 7, 2026 14:01
@lszomoru lszomoru self-assigned this May 7, 2026
@lszomoru lszomoru added this to the 1.120.0 milestone May 7, 2026
deepak1556
deepak1556 previously approved these changes May 7, 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

This PR cleans up the Agents window “Changes” view menu/action wiring by introducing dedicated menu IDs and extension menu keys for the Agents Changes toolbar, instead of reusing the Chat Editing session menus.

Changes:

  • Added new extension-contributed menu keys for the Agents Changes toolbar and its primary-action submenu (agents/changes/actions, agents/changes/actions/primary).
  • Migrated Agents-window “Changes” toolbar actions to the new MenuId.AgentsChangesToolbar.
  • Updated built-in extension menu contributions to target the new menu key.
Show a summary per file
File Description
src/vs/workbench/services/actions/common/menusExtensionPoint.ts Removes old apply-actions menu key and registers new Agents Changes toolbar + primary submenu keys.
src/vs/sessions/test/e2e/extensions/sessions-e2e-mock/package.json Updates mock extension menu contributions to the new Agents Changes primary submenu key.
src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts Moves session actions (mark done/restore) to the Agents Changes toolbar menu.
src/vs/sessions/contrib/codeReview/browser/codeReview.contributions.ts Moves “Run Code Review” action contribution to the Agents Changes toolbar.
src/vs/sessions/contrib/changes/browser/changesViewActions.ts Moves “Open Pull Request” action contribution to the Agents Changes toolbar.
src/vs/sessions/contrib/changes/browser/changesView.ts Renders the Changes view button bar from MenuId.AgentsChangesToolbar.
src/vs/sessions/contrib/applyCommitsToParentRepo/browser/applyChangesToParentRepo.ts Rewires the toolbar submenu entry to the new Agents Changes primary-action submenu.
src/vs/sessions/contrib/agentHost/test/browser/agentHostSkillButtons.test.ts Adjusts test wiring to look at the Agents Changes toolbar (but still needs submenu ID updates).
src/vs/platform/actions/common/actions.ts Removes the old submenu MenuId and adds new Agents Changes toolbar/submenu MenuIds.
extensions/github/package.json Updates contributed menu key to the new Agents Changes primary submenu key.
extensions/copilot/package.json Updates contributed menu key to the new Agents Changes primary submenu key.

Copilot's findings

  • Files reviewed: 11/11 changed files
  • Comments generated: 3

Comment thread src/vs/platform/actions/common/actions.ts
Comment on lines 167 to 171
// Register the apply submenu in the session changes toolbar
MenuRegistry.appendMenuItem(MenuId.ChatEditingSessionChangesToolbar, {
submenu: MenuId.ChatEditingSessionApplySubmenu,
MenuRegistry.appendMenuItem(MenuId.AgentsChangesToolbar, {
submenu: MenuId.AgentsChangesPrimaryActionSubMenu,
title: localize2('applyActions', 'Apply Actions'),
group: 'navigation',
@lszomoru lszomoru merged commit ef8acee into main May 7, 2026
26 checks passed
@lszomoru lszomoru deleted the lszomoru/rubber-tarantula branch May 7, 2026 14:30
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.

4 participants