From 1c00a1125d2f10abb0bd87a9ada0306b3969f495 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Sat, 14 Nov 2026 23:41:17 +0800 Subject: [PATCH] fix(ui): remember splitter positions in the Git and other tool windows SplitGroup only remembers sizes with a storageKey, and none of the Git views passed one, so the Commit, Local Changes, Log, Stash/Shelf and revision splitters went back to their defaults whenever the view was recreated. Give them, the Commit dialog, and the Todo, Find, Problems, Usages, Build, HTTP Client and Dependency Analyzer splits a key, with stable panel ids. A view whose preview pane comes and goes keys its sizes per panel set; SplitGroup now applies that set's saved sizes when the key changes, once the panels have registered, so toggling a preview restores its size without remounting the view. --- .../build-tools/DependencyAnalyzer.tsx | 6 +- src/features/build/BuildView.tsx | 7 +- src/features/code-insight/ProblemsView.tsx | 2 +- src/features/code-insight/UsagesView.tsx | 2 +- src/features/http-client/HttpClientView.tsx | 2 +- src/features/search/find/FindToolWindow.tsx | 7 +- src/features/todo/TodoView.tsx | 6 +- src/features/vcs/CommitDialog.tsx | 16 ++-- src/features/vcs/CommitView.tsx | 34 +++++--- src/features/vcs/GitLog.tsx | 4 +- src/features/vcs/RevisionBrowser.tsx | 2 +- src/ui/Splitter.test.tsx | 43 ++++++++++ src/ui/Splitter.tsx | 80 +++++++++++++++---- 13 files changed, 169 insertions(+), 42 deletions(-) create mode 100644 src/ui/Splitter.test.tsx diff --git a/src/features/build-tools/DependencyAnalyzer.tsx b/src/features/build-tools/DependencyAnalyzer.tsx index 2b48e5bf90..257393af03 100644 --- a/src/features/build-tools/DependencyAnalyzer.tsx +++ b/src/features/build-tools/DependencyAnalyzer.tsx @@ -440,7 +440,11 @@ export function DependencyAnalyzer(_props: { input: EditorInput }) { const treeView = (