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 18:10:01 +00:00
committed by GitHub
co-authored by Mikayla Maki
parent 4f9f443452
commit e3830d2ef5
11 changed files with 625 additions and 487 deletions
File diff suppressed because it is too large Load Diff
+8 -6
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