Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore committed Feb 12, 2025
1 parent e2c53e6 commit 9a5caf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/workspace/src/workspace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ impl Workspace {
self.project.read(cx).visible_worktrees(cx)
}

#[cfg(any(test, feature = "test-support"))]
pub fn worktree_scans_complete(&self, cx: &App) -> impl Future<Output = ()> + 'static {
let futures = self
.worktrees(cx)
Expand Down
5 changes: 3 additions & 2 deletions crates/worktree/src/worktree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4513,7 +4513,7 @@ impl BackgroundScanner {
self.scan_dirs(false, scan_job_rx).await;

let status_update = if !dot_git_abs_paths.is_empty() {
Some(self.schedule_git_repositories_update(dot_git_abs_paths))
Some(self.update_git_repositories(dot_git_abs_paths))
} else {
None
};
Expand Down Expand Up @@ -5231,7 +5231,7 @@ impl BackgroundScanner {
state.snapshot.entries_by_id.edit(entries_by_id_edits, &());
}

fn schedule_git_repositories_update(&self, dot_git_paths: Vec<PathBuf>) -> Task<()> {
fn update_git_repositories(&self, dot_git_paths: Vec<PathBuf>) -> Task<()> {
log::debug!("reloading repositories: {dot_git_paths:?}");

let mut repos_to_update = Vec::new();
Expand Down Expand Up @@ -5643,6 +5643,7 @@ impl RepoPaths {
}
}

#[derive(Debug)]
struct ScanJob {
abs_path: Arc<Path>,
path: Arc<Path>,
Expand Down

0 comments on commit 9a5caf6

Please sign in to comment.