Skip to content

Improve file list handling and UI elements - #324496

Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/superior-deer
Jul 6, 2026
Merged

Improve file list handling and UI elements#324496
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/superior-deer

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Copilot Generated Description: Introduce a maximum size for the tree pane, add a file count display in the header, and remove the decoration badge from the session files widget. Adjust the logic for handling deleted files to remove them entirely from the list rather than marking them as deleted.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refines the "Other Files" / changes UI in the Agents window (vs/sessions). It changes how deleted files are handled in reduceSessionFiles (deletions now net a file out of the list entirely instead of surfacing a Deleted entry), simplifies the session files row by dropping the A/M/D decoration badge, adds a collapsed-header file count that mirrors the customizations widget, and makes the changes tree pane grow-to-fit its content with a row-capped minimum and a bounded maximum.

Changes:

  • reduceSessionFiles now removes files on delete/rename-source instead of marking them Deleted; tests updated and a new created-then-deleted case added.
  • SessionFilesWidget drops the decoration badge, adds a collapsed-only file count in the header, and switches the header hover delegate to 'mouse'.
  • ChangesViewPane grows the tree pane minimum size to fit content (capped by TREE_PANE_MIN_SIZE_MAX_ROWS) and applies bottom padding to the min/max size calculations.
Show a summary per file
File Description
src/vs/sessions/contrib/providers/agentHost/browser/agentHostSessionFiles.ts Replaces setDeleted with removeFile so deletes drop entries from the reduction map; updates doc comments.
src/vs/sessions/contrib/providers/agentHost/test/browser/agentHostSessionFiles.test.ts Updates expectations for deletes/renames and adds a created-then-deleted test.
src/vs/sessions/contrib/changes/browser/sessionFilesWidget.ts Removes the decoration badge template/rendering, adds collapsed file-count node, switches hover delegate.
src/vs/sessions/contrib/changes/browser/media/sessionFilesWidget.css Removes badge styles, adds .session-files-widget-count styles.
src/vs/sessions/contrib/changes/browser/changesView.ts Adds row-cap/padding constants and grows the tree pane min/max size to fit content.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Medium

Comment thread src/vs/sessions/contrib/changes/browser/changesView.ts Outdated
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: e8abd588 Current: 8ce8d98b

Changed (10)

sessions/changes/changesView/AllSections_List/Dark
Before After
before after
sessions/changes/changesView/AllSections_List/Light
Before After
before after
sessions/changes/changesView/TreeMode/Dark
Before After
before after
sessions/changes/changesView/TreeMode/Light
Before After
before after
sessions/changes/changesView/NoFileChangesWithOtherFiles/Dark
Before After
before after
sessions/changes/changesView/NoFileChangesWithOtherFiles/Light
Before After
before after
changes/sessionFilesWidget/WithFiles/Dark
Before After
before after
changes/sessionFilesWidget/WithFiles/Light
Before After
before after
changes/sessionFilesWidget/SingleCreatedFile/Dark
Before After
before after
changes/sessionFilesWidget/SingleCreatedFile/Light
Before After
before after

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
auto-merge was automatically disabled July 6, 2026 20:53

Pull request was closed

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 91190ee into main Jul 6, 2026
54 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/superior-deer branch July 6, 2026 21:07
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 6, 2026
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