mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-24 07:32:51 +00:00
parent
7928095951
commit
5c5fb972d0
1 changed files with 9 additions and 7 deletions
|
@ -8920,16 +8920,18 @@ impl Editor {
|
|||
}
|
||||
|
||||
fn start_git_blame_inline(&mut self, user_triggered: bool, cx: &mut ViewContext<Self>) {
|
||||
if let Some(inline_blame_settings) = ProjectSettings::get_global(cx).git.inline_blame {
|
||||
self.start_git_blame(user_triggered, cx);
|
||||
|
||||
if inline_blame_settings.delay_ms.is_some() {
|
||||
if ProjectSettings::get_global(cx)
|
||||
.git
|
||||
.inline_blame_delay()
|
||||
.is_some()
|
||||
{
|
||||
self.start_inline_blame_timer(cx);
|
||||
} else {
|
||||
self.show_git_blame_inline = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn blame(&self) -> Option<&Model<GitBlame>> {
|
||||
self.blame.as_ref()
|
||||
|
|
Loading…
Reference in a new issue