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.

settings: Include `null` in the type for optional settings (#20192)

Marshall Bowers8196db6022b3
diff --git a/crates/settings/src/settings_store.rs b/crates/settings/src/settings_store.rs
index 620055a9712..2e867a21280 100644
--- a/crates/settings/src/settings_store.rs
+++ b/crates/settings/src/settings_store.rs
@@ -746,7 +746,7 @@ impl SettingsStore {
};
let settings = SchemaSettings::draft07().with(|settings| {
- settings.option_add_null_type = false;
+ settings.option_add_null_type = true;
});
let mut generator = SchemaGenerator::new(settings);
let mut combined_schema = RootSchema::default();