Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panic when opening settings in zed2 (#3375)
Marshall Bowers6cd0bcc5783f
diff --git a/crates/theme2/src/settings.rs b/crates/theme2/src/settings.rsindex 01951f2ed0a..15b578d4b0e 100644--- a/crates/theme2/src/settings.rs+++ b/crates/theme2/src/settings.rs@@ -184,7 +184,7 @@ impl settings::Settings for ThemeSettings {) -> schemars::schema::RootSchema {let mut root_schema = generator.root_schema_for::<ThemeSettingsContent>();let theme_names = cx- .global::<Arc<ThemeRegistry>>()+ .global::<ThemeRegistry>().list_names(params.staff_mode).map(|theme_name| Value::String(theme_name.to_string())).collect();