Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Dec 28, 2024

Same as cline/cline#1060


Important

Enhances WorkspaceTracker efficiency with file limit and debounce, ensuring robust file handling and testing.

  • Behavior:
    • Introduces MAX_INITIAL_FILES constant in WorkspaceTracker.ts to limit initial file loading to 1000 files.
    • Implements a debounce mechanism in workspaceDidUpdate() with a 300ms delay to optimize update frequency.
    • Limits total tracked files to 2000, with buffer for file creation/deletion.
  • Testing:
    • Adds tests in WorkspaceTracker.test.ts for file creation, deletion, and directory handling.
    • Tests file limit enforcement and debounce functionality.
    • Ensures cleanup of watchers and timers on dispose().
  • Misc:
    • Updates initializeFilePaths() to respect MAX_INITIAL_FILES.

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

@changeset-bot
Copy link

changeset-bot bot commented Dec 28, 2024

🦋 Changeset detected

Latest commit: db9827e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
roo-cline Patch

Not sure what this means? Click here to learn what changesets are.

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

@mrubens mrubens merged commit c6b90b4 into main Dec 28, 2024
6 checks passed
@mrubens mrubens deleted the more_efficient_filetracker branch December 28, 2024 01:35
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.

3 participants