Don't override top-level settings with language defaults
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
f2f9cad375
commit
2cb8a3ccfb
6 changed files with 152 additions and 108 deletions
|
@ -965,10 +965,9 @@ pub mod tests {
|
|||
);
|
||||
language.set_theme(&theme);
|
||||
cx.update(|cx| {
|
||||
cx.set_global(Settings {
|
||||
tab_size: 2,
|
||||
..Settings::test(cx)
|
||||
})
|
||||
let mut settings = Settings::test(cx);
|
||||
settings.language_settings.tab_size = Some(2);
|
||||
cx.set_global(settings);
|
||||
});
|
||||
|
||||
let buffer = cx.add_model(|cx| Buffer::new(0, text, cx).with_language(language, cx));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue