ZIm/crates/settings/src
Bennet Bo Fenner 0540291204
settings: Introduce PRESERVED_KEYS to write default values (#15474)
This adds the optional `PRESERVED_KEYS` constant to the `Settings`
trait,
which allows users of the trait to specify which keys should be written
to
the settings file, even if their current value matches the default
value.

That's useful for tagged settings that have, for example, a `"version"`
field
that should always be present in the user settings file, so we can then
reparse
the user settings based on the version.

Co-Authored-By: Thorsten <thorsten@zed.dev>

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>
2024-07-30 13:09:50 +02:00
..
editable_setting_control.rs settings_ui: Add theme settings controls (#15115) 2024-07-24 16:25:52 -04:00
json_schema.rs Factor out construction of font-related JSON schemas (#15341) 2024-07-27 12:28:50 -04:00
keymap_file.rs Don't log JSON parse errors with no settings (#11459) 2024-05-06 14:55:44 -06:00
settings.rs Factor out construction of font-related JSON schemas (#15341) 2024-07-27 12:28:50 -04:00
settings_file.rs Feature/fallback fonts (#15306) 2024-07-26 16:42:21 -07:00
settings_store.rs settings: Introduce PRESERVED_KEYS to write default values (#15474) 2024-07-30 13:09:50 +02:00