microsoft / microsoft/vscode

Add a command to focus and expand the Chat “Files changed” list

Open
#335,691 0 comments 0 reactions 1 assignee Claimed by @aeschli View on GitHub
triage-needed
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Description

I would like a keyboard-accessible way to move focus from the Chat input directly to the Files changed list (to keep / undo with keybindings). No need to use mouse anynore.

Using Copilot to help me with no sucess :[

The command should:

Expand the Files changed section if it is collapsed.
Focus the list.
Focus the first changed file, or restore the previously focused file.
This would make it possible to review Chat edits entirely with the keyboard and then return to the Chat input using the existing workbench.action.chat.focusInput command.

What I tried

I tried using generic list commands such as list.focusFirst. This only works after the Files changed section has already been expanded and one of its files has previously received focus.

Otherwise, the command may focus another list, such as the Chat conversation. Generic list commands operate on the last focused list and cannot specifically target or expand the Chat Files changed list.

I also could not find a public command for toggling or focusing this list. The section appears to use private Chat UI behavior that cannot be targeted reliably from keybindings.json.

Expected behavior

VS Code should expose a command dedicated to this UI, for example:

When executed, it should expand Files changed when necessary and move keyboard focus to a changed file. This command could then be assigned to any user-defined keybinding.

Best regards from France :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.