Define project settings in project crate

This commit is contained in:
Max Brunsfeld
2023-05-16 17:45:04 -07:00
parent 65e3713d4d
commit cbd4771f10
17 changed files with 59 additions and 27 deletions
+1 -4
View File
@@ -25,10 +25,7 @@ impl Setting for EditorSettings {
default_value: &Self::FileContent,
user_values: &[&Self::FileContent],
_: &gpui::AppContext,
) -> anyhow::Result<Self>
where
Self: Sized,
{
) -> anyhow::Result<Self> {
Self::load_via_json_merge(default_value, user_values)
}
}
+1
View File
@@ -6684,6 +6684,7 @@ pub(crate) fn init_test(cx: &mut TestAppContext, f: fn(&mut AllLanguageSettingsC
cx.set_global(Settings::test(cx));
language::init(cx);
crate::init(cx);
Project::init_settings(cx);
});
update_test_settings(cx, f);
@@ -40,6 +40,7 @@ impl<'a> EditorLspTestContext<'a> {
language::init(cx);
crate::init(cx);
pane::init(cx);
Project::init_settings(cx);
});
let file_name = format!(