mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 04:20:46 +00:00
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:
parent
dc5fad52a3
commit
8196db6022
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue