Move all default settings from source code into the JSON file
This commit is contained in:
@@ -983,7 +983,7 @@ pub mod tests {
|
||||
language.set_theme(&theme);
|
||||
cx.update(|cx| {
|
||||
let mut settings = Settings::test(cx);
|
||||
settings.language_settings.tab_size = Some(2.try_into().unwrap());
|
||||
settings.editor_defaults.tab_size = Some(2.try_into().unwrap());
|
||||
cx.set_global(settings);
|
||||
});
|
||||
|
||||
|
||||
@@ -7613,7 +7613,7 @@ mod tests {
|
||||
let mut cx = EditorTestContext::new(cx).await;
|
||||
cx.update(|cx| {
|
||||
cx.update_global::<Settings, _, _>(|settings, _| {
|
||||
settings.language_settings.hard_tabs = Some(true);
|
||||
settings.editor_overrides.hard_tabs = Some(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user