Project panel faster (#35634)

- **Use a struct instead of a thruple for visible worktree entries**
- **Try some telemetry**

Closes #ISSUE

Release Notes:

- N/A

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
This commit is contained in:
Conrad Irwin 2025-08-08 13:32:58 +01:00 committed by GitHub
parent 0097d89672
commit bc32b5a976
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 122 additions and 78 deletions

View file

@ -110,11 +110,7 @@ impl<'a> GitTraversal<'a> {
}
pub fn advance(&mut self) -> bool {
self.advance_by(1)
}
pub fn advance_by(&mut self, count: usize) -> bool {
let found = self.traversal.advance_by(count);
let found = self.traversal.advance_by(1);
self.synchronize_statuses(false);
found
}