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:
Max Brunsfeld 2021-07-12 17:26:14 -07:00
parent 86ca442fbe
commit 2a90347b82
8 changed files with 213 additions and 244 deletions

View file

@ -21,6 +21,7 @@ pub struct AppState {
pub languages: std::sync::Arc<language::LanguageRegistry>,
pub rpc_router: std::sync::Arc<ForegroundRouter>,
pub rpc: rpc::Client,
pub fs: std::sync::Arc<dyn worktree::Fs>,
}
pub fn init(cx: &mut gpui::MutableAppContext) {