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