Skip to content

Code Review: Add tree/directory grouping for changed files #8821

@kimyouknow

Description

@kimyouknow

Feature Request

The Code Review panel currently displays changed files as a flat list. When working in a monorepo or a project with deep directory structures, it's hard to visually group related files.

Requested Feature

Add a tree view / directory grouping toggle for the changed files list in the Code Review panel, similar to:

  • GitHub PR "File tree" toggle
  • VS Code Source Control tree view

Current Behavior

Files are listed flat with full paths, making it difficult to scan when many files are changed across multiple directories.

Expected Behavior

Option to toggle between:

  1. Flat list (current) — all files in a single list
  2. Tree view — files grouped by directory hierarchy, collapsible

Context

This would complement the existing filename filter (#8632) and make the Code Review panel more usable for large changesets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions