This PR updates two existing settings to use the settings migrator instead of a manually implemented visitor. Both of these settings were changed prior to the introduction of automatic migrations and the visitor ensured that the settings were kept backwards compatible. See https://github.com/zed-industries/zed/pull/22200 and https://github.com/zed-industries/zed/pull/22364 respectively. WIth this change, existing user configurations are updated accordingly and the corresponding settings can derive `Deserialize` again. I also added tests for the replacement of settings values, as there was no test for this behaviour. Additionally, I added a seperate test for the existing migration of `always_show_close_button`, since that migration updated both the key and value. Release Notes: - N/A
34 lines
651 B
Rust
34 lines
651 B
Rust
pub(crate) mod m_2025_01_02 {
|
|
mod settings;
|
|
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_01_29 {
|
|
mod keymap;
|
|
mod settings;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
pub(crate) use settings::{replace_edit_prediction_provider_setting, SETTINGS_PATTERNS};
|
|
}
|
|
|
|
pub(crate) mod m_2025_01_30 {
|
|
mod keymap;
|
|
mod settings;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
pub(crate) use settings::SETTINGS_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_03_03 {
|
|
mod keymap;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
}
|
|
|
|
pub(crate) mod m_2025_03_06 {
|
|
mod keymap;
|
|
|
|
pub(crate) use keymap::KEYMAP_PATTERNS;
|
|
}
|