add tree view (#906)

This commit is contained in:
马曜峥行
2026-04-14 20:08:59 +03:00
committed by GitHub
parent 1656c3bb93
commit 43a4c0c874
9 changed files with 434 additions and 35 deletions
@@ -371,6 +371,12 @@ export const createSettingsHelpers = (dependencies) => {
result.diffViewMode = mode;
}
}
if (typeof candidate.gitChangesViewMode === 'string') {
const mode = candidate.gitChangesViewMode.trim();
if (mode === 'flat' || mode === 'tree') {
result.gitChangesViewMode = mode;
}
}
if (typeof candidate.directoryShowHidden === 'boolean') {
result.directoryShowHidden = candidate.directoryShowHidden;
}