settings_ui: Add maybe settings (#40724)

Closes #ISSUE

Adds a `Maybe<T>` type to `settings_content`, that makes the distinction
between `null` and omitted settings values explicit. This unlocks a few
more settings in the settings UI

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Ben Kunkle
2025-10-20 16:25:20 -04:00
committed by GitHub
parent 33bc586ed1
commit ebaefa8cbc
8 changed files with 434 additions and 31 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ impl Settings for WorktreeSettings {
.collect();
Self {
project_name: worktree.project_name.filter(|p| !p.is_empty()),
project_name: worktree.project_name.into_inner(),
file_scan_exclusions: path_matchers(file_scan_exclusions, "file_scan_exclusions")
.log_err()
.unwrap_or_default(),