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
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue