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

Marshall Bowers created

This PR updates all settings that are defined as `Option`s to include
`null` in their type.

This prevents warnings from being displayed when `null` is used a
default value.

Closes https://github.com/zed-industries/zed/issues/18006.

Release Notes:

- Updated the settings schema to allow `null` as a value for optional
settings instead of showing a warning.

Change summary

crates/settings/src/settings_store.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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();