Git activity indicator (#28204)

Closes #26182

Release Notes:

- Added an activity indicator for long-running git commands.

---------

Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Julia Ryan 2025-04-07 11:10:01 -07:00 committed by GitHub
parent 4f9f443452
commit e3830d2ef5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 625 additions and 487 deletions

View file

@ -4135,20 +4135,22 @@ impl Project {
&self,
buffer: &Entity<Buffer>,
version: Option<clock::Global>,
cx: &App,
cx: &mut App,
) -> Task<Result<Option<Blame>>> {
self.git_store.read(cx).blame_buffer(buffer, version, cx)
self.git_store.update(cx, |git_store, cx| {
git_store.blame_buffer(buffer, version, cx)
})
}
pub fn get_permalink_to_line(
&self,
buffer: &Entity<Buffer>,
selection: Range<u32>,
cx: &App,
cx: &mut App,
) -> Task<Result<url::Url>> {
self.git_store
.read(cx)
.get_permalink_to_line(buffer, selection, cx)
self.git_store.update(cx, |git_store, cx| {
git_store.get_permalink_to_line(buffer, selection, cx)
})
}
// RPC message handlers