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:
parent
4f9f443452
commit
e3830d2ef5
11 changed files with 625 additions and 487 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue