VSCode settings import refactor (#40513)

A small follow-up to the settings refactor of a few weeks ago to move
all the VSCode settings imports
to one place.

This should make it easier to spot missing imports, and easier to test
the importer.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2025-10-17 17:47:05 +00:00
committed by GitHub
parent 62858f6a5c
commit 1fbe1e3512
19 changed files with 774 additions and 924 deletions
@@ -62,20 +62,4 @@ impl Settings for OutlinePanelSettings {
expand_outlines_with_depth: panel.expand_outlines_with_depth.unwrap(),
}
}
fn import_from_vscode(
vscode: &settings::VsCodeSettings,
current: &mut settings::SettingsContent,
) {
if let Some(b) = vscode.read_bool("outline.icons") {
let outline_panel = current.outline_panel.get_or_insert_default();
outline_panel.file_icons = Some(b);
outline_panel.folder_icons = Some(b);
}
if let Some(b) = vscode.read_bool("git.decorations.enabled") {
let outline_panel = current.outline_panel.get_or_insert_default();
outline_panel.git_status = Some(b);
}
}
}