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

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.
This commit is contained in:
Marshall Bowers 2024-11-04 14:25:44 -05:00 committed by GitHub
parent dc5fad52a3
commit 8196db6022
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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