Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix a bug when extension loading is failed after it's folder is viewed by MacOS finder (#8111)
Ivan Buryak7bf16f263e42
diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rsindex 59cbe7a0fd7..5543f04d7d2 100644--- a/crates/extension/src/extension_store.rs+++ b/crates/extension/src/extension_store.rs@@ -651,6 +651,12 @@ impl ExtensionStore {let Ok(relative_path) = language_path.strip_prefix(&extension_dir) else {continue;};+ let Ok(Some(fs_metadata)) = fs.metadata(&language_path).await else {+ continue;+ };+ if !fs_metadata.is_dir {+ continue;+ }let config = fs.load(&language_path.join("config.toml")).await?;let config = ::toml::from_str::<LanguageConfig>(&config)?;