mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-29 21:49:33 +00:00
Get worktree out of the way so we can try again
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
26f9127e83
commit
cbc1d83067
8 changed files with 5 additions and 5 deletions
|
@ -15,7 +15,7 @@ use crate::{
|
|||
sum_tree::{self, Cursor, FilterCursor, SeekBias, SumTree},
|
||||
time::{self, ReplicaId},
|
||||
util::RandomCharIter,
|
||||
worktree::FileHandle,
|
||||
worktree_old::FileHandle,
|
||||
};
|
||||
use anyhow::{anyhow, Result};
|
||||
use gpui::{AppContext, Entity, ModelContext};
|
||||
|
|
|
@ -3,7 +3,7 @@ use crate::{
|
|||
settings::Settings,
|
||||
util, watch,
|
||||
workspace::{Workspace, WorkspaceView},
|
||||
worktree::{match_paths, PathMatch, Worktree},
|
||||
worktree_old::{match_paths, PathMatch, Worktree},
|
||||
};
|
||||
use gpui::{
|
||||
color::{ColorF, ColorU},
|
||||
|
|
|
@ -13,4 +13,4 @@ mod timer;
|
|||
mod util;
|
||||
pub mod watch;
|
||||
pub mod workspace;
|
||||
mod worktree;
|
||||
mod worktree_old;
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::{
|
|||
settings::Settings,
|
||||
time::ReplicaId,
|
||||
watch,
|
||||
worktree::{Worktree, WorktreeHandle as _},
|
||||
worktree_old::{Worktree, WorktreeHandle as _},
|
||||
};
|
||||
use anyhow::anyhow;
|
||||
use gpui::{AppContext, Entity, Handle, ModelContext, ModelHandle, MutableAppContext, ViewContext};
|
||||
|
|
|
@ -74,7 +74,7 @@ impl Worktree {
|
|||
|
||||
{
|
||||
let tree = tree.clone();
|
||||
ctx.app().scoped_pool().spawn(move || {
|
||||
ctx.as_ref().scoped_pool().spawn(move || {
|
||||
if let Err(error) = tree.scan_dirs() {
|
||||
log::error!("error scanning worktree: {}", error);
|
||||
}
|
Loading…
Reference in a new issue