Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

eval_cli: Set global filesystem in eval CLI init (#55862)

Ben Brandt9a679b3226b2
diff --git a/crates/eval_cli/src/headless.rs b/crates/eval_cli/src/headless.rs
index 0ddd99e8f8a..a5b86f8eec8 100644
--- a/crates/eval_cli/src/headless.rs
+++ b/crates/eval_cli/src/headless.rs
@@ -70,6 +70,7 @@ pub fn init(cx: &mut App) -> Arc<AgentCliAppState> {
git_binary_path,
cx.background_executor().clone(),
));
+ <dyn fs::Fs>::set_global(fs.clone(), cx);
let mut languages = LanguageRegistry::new(cx.background_executor().clone());
languages.set_language_server_download_dir(paths::languages_dir().clone());