Store an Fs on Workspace, pass it to each Worktree
Push test-only worktree behavior down into the Fs, via a `watch` method which provides fs events. Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
86ca442fbe
commit
2a90347b82
8 changed files with 213 additions and 244 deletions
|
@ -1,4 +1,6 @@
|
|||
use crate::{language::LanguageRegistry, rpc, settings, time::ReplicaId, AppState};
|
||||
use crate::{
|
||||
language::LanguageRegistry, rpc, settings, time::ReplicaId, worktree::RealFs, AppState,
|
||||
};
|
||||
use gpui::AppContext;
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
|
@ -152,5 +154,6 @@ pub fn build_app_state(cx: &AppContext) -> Arc<AppState> {
|
|||
languages: languages.clone(),
|
||||
rpc_router: Arc::new(ForegroundRouter::new()),
|
||||
rpc: rpc::Client::new(languages),
|
||||
fs: Arc::new(RealFs),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue