Skip to content

Agents - add open command actions for files/changes#311868

Merged
lszomoru merged 3 commits intomainfrom
lszomoru/gross-unicorn
Apr 22, 2026
Merged

Agents - add open command actions for files/changes#311868
lszomoru merged 3 commits intomainfrom
lszomoru/gross-unicorn

Conversation

@lszomoru
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 22, 2026 09:23
@lszomoru lszomoru enabled auto-merge (squash) April 22, 2026 09:23
@lszomoru lszomoru self-assigned this Apr 22, 2026
@lszomoru lszomoru added this to the 1.118.0 milestone Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

Screenshot Changes

Base: 200fb2ed Current: fd85baff

Changed (1)

editor/inlineCompletions/other/JumpToHint/Dark
Before After
before after

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 adds “open/toggle” command actions for the Agents window’s Files and Changes view containers so they can be invoked from commands/menus and have default keybindings, aligning with the standard VS Code Explorer/SCM shortcuts.

Changes:

  • Register openCommandActionDescriptor for the Sessions Files container (incl. Ctrl/Cmd+Shift+E).
  • Move/register openCommandActionDescriptor for the Sessions Changes container (incl. Ctrl+Shift+G on Win/Linux, Ctrl+Shift+G on mac).
  • Adjust container/view visibility behavior (e.g. hideIfEmpty: false, disable toggling/moving views).
Show a summary per file
File Description
src/vs/sessions/contrib/files/browser/files.contribution.ts Adds an open/toggle command descriptor and keybinding for the Sessions Files container; adjusts container/view visibility flags.
src/vs/sessions/contrib/changes/browser/changes.contribution.ts Registers an open/toggle command descriptor + keybinding for the Sessions Changes container and adjusts container/view flags.

Copilot's findings

Comments suppressed due to low confidence (1)

src/vs/sessions/contrib/files/browser/files.contribution.ts:43

  • openCommandActionDescriptor.title is set to "Explorer" while the container title and mnemonic are "Files". This will surface as a command named "Toggle Explorer" that actually toggles the Files container, which is misleading. Either omit title (so it uses the container title), or make the container/command titles consistent (e.g. both "Files" or both "Explorer").
	openCommandActionDescriptor: {
		id: SESSIONS_FILES_CONTAINER_ID,
		title: localize2('explore', "Explorer"),
		mnemonicTitle: localize({ key: 'miFiles', comment: ['&& denotes a mnemonic'] }, "Fil&&es"),
		keybindings: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyE },
  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment thread src/vs/sessions/contrib/files/browser/files.contribution.ts Outdated
Comment thread src/vs/sessions/contrib/files/browser/files.contribution.ts
Comment thread src/vs/sessions/contrib/changes/browser/changes.contribution.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
alexdima
alexdima previously approved these changes Apr 22, 2026
@lszomoru lszomoru merged commit e82fa25 into main Apr 22, 2026
26 checks passed
@lszomoru lszomoru deleted the lszomoru/gross-unicorn branch April 22, 2026 10:18
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