Once again respect user settings for git gutter
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
parent
e6487de069
commit
6f6d72890a
3 changed files with 37 additions and 12 deletions
|
@ -663,12 +663,8 @@ impl LocalWorktree {
|
|||
let fs = self.fs.clone();
|
||||
let snapshot = self.snapshot();
|
||||
|
||||
let files_included = cx
|
||||
.global::<Settings>()
|
||||
.git
|
||||
.git_gutter
|
||||
.expect("This should be Some by setting setup")
|
||||
.files_included;
|
||||
let settings = cx.global::<Settings>();
|
||||
let files_included = settings.git_gutter().files_included(settings);
|
||||
|
||||
cx.spawn(|this, mut cx| async move {
|
||||
let text = fs.load(&abs_path).await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue