Skip to content

Conversation

@aheizi
Copy link
Contributor

@aheizi aheizi commented Mar 24, 2025

Context

  1. The newly opened file is displayed in the @files list.
  2. The currently opened file is at the first position of @file.

Implementation

  1. add tabGroups.onDidChangeTabs deal
  2. sort tabs by isActive

Screenshots

image

How to Test

Open a new file and observe the changes in the @files list.

Get in Touch

aheizi


Important

Optimizes WorkspaceTracker to prioritize active tabs and handle tab changes efficiently.

  • Behavior:
    • Updates WorkspaceTracker to handle tab changes with onDidChangeTabs, calling workspaceDidUpdate or workspaceDidReset based on workspace path changes.
    • Sorts tabs by isActive status in getOpenedTabsInfo() to prioritize active tabs.
  • Functions:
    • Modifies registerListeners() to include logic for handling tab changes.
    • Updates getOpenedTabsInfo() to sort tabs by activity status.

This description was created by Ellipsis for e777ac2. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 24, 2025

⚠️ No Changeset found

Latest commit: e777ac2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Mar 24, 2025
@aheizi
Copy link
Contributor Author

aheizi commented Mar 24, 2025

The first one may be related to this MR. #1725

@aheizi aheizi changed the title optimize context files optimize context files (fix) Mar 24, 2025
Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 24, 2025
@mrubens mrubens merged commit 83ba22a into RooCodeInc:main Mar 24, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants