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:
Nathan Sobo 2021-04-14 11:09:06 -06:00
parent 26f9127e83
commit cbc1d83067
8 changed files with 5 additions and 5 deletions

View file

@ -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};

View file

@ -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},

View file

@ -13,4 +13,4 @@ mod timer;
mod util;
pub mod watch;
pub mod workspace;
mod worktree;
mod worktree_old;

View file

@ -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};

View file

@ -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);
}