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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user