Start up settings UI 2 (#38673)

Release Notes:

- N/A

---------

Co-authored-by: Anthony <hello@anthonyeid.me>
Co-authored-by: Ben Kunkle <ben@zed.dev>
Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
This commit is contained in:
Mikayla Maki
2025-09-24 15:45:14 +00:00
committed by GitHub
co-authored by Anthony Ben Kunkle Anthony Ben Kunkle
parent 6f3e66d027
commit 53885c00d3
11 changed files with 582 additions and 10 deletions
-1
View File
@@ -177,7 +177,6 @@ impl KeymapFile {
}
}
#[cfg(feature = "test-support")]
pub fn load_asset_allow_partial_failure(
asset_path: &str,
cx: &App,
+6 -2
View File
@@ -138,7 +138,6 @@ pub struct SettingsLocation<'a> {
pub path: &'a Path,
}
/// A set of strongly-typed setting values defined via multiple config files.
pub struct SettingsStore {
setting_values: HashMap<TypeId, Box<dyn AnySettingValue>>,
default_settings: Rc<SettingsContent>,
@@ -318,7 +317,7 @@ impl SettingsStore {
.set_global_value(Box::new(value))
}
/// Get the user's settings as a raw JSON value.
/// Get the user's settings content.
///
/// For user-facing functionality use the typed setting interface.
/// (e.g. ProjectSettings::get_global(cx))
@@ -326,6 +325,11 @@ impl SettingsStore {
self.user_settings.as_ref()
}
/// Get the default settings content as a raw JSON value.
pub fn raw_default_settings(&self) -> &SettingsContent {
&self.default_settings
}
/// Get the configured settings profile names.
pub fn configured_settings_profiles(&self) -> impl Iterator<Item = &str> {
self.user_settings