Skip to content

Sessions - fix sorting of the files#307915

Open
lszomoru wants to merge 2 commits intomainfrom
lszomoru/running-catshark
Open

Sessions - fix sorting of the files#307915
lszomoru wants to merge 2 commits intomainfrom
lszomoru/running-catshark

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 5, 2026

Fixes #307754

@lszomoru lszomoru enabled auto-merge (squash) April 5, 2026 20:09
Copilot AI review requested due to automatic review settings April 5, 2026 20:09
@lszomoru lszomoru self-assigned this Apr 5, 2026
@lszomoru lszomoru added this to the 1.115.0 milestone Apr 5, 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 improves the Sessions “Changes” view by ensuring files/folders are consistently sorted, aligning the Sessions changes UI behavior with other tree/list views in the codebase.

Changes:

  • Add a custom ITreeSorter to sort entries in both List and Tree modes.
  • Switch to basename from base/common/resources (URI-based) for repo display names and ARIA labels.
  • Use shared comparer utilities (comparePaths, compareFileNames) for consistent ordering.
Show a summary per file
File Description
src/vs/sessions/contrib/changes/browser/changesView.ts Introduces a tree sorter for stable file/folder ordering and normalizes basename handling to URI-based helpers.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

justschen
justschen previously approved these changes Apr 5, 2026
auto-merge was automatically disabled April 5, 2026 21:17

Pull Request is not mergeable

@justschen
Copy link
Copy Markdown
Collaborator

ope this one has conflicts now

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.

Agents: Changes aren't sorted correctly when in tree view mode

3 participants