From 38fbd50ff1a64d7d94a1fe77aa7150a83b081192 Mon Sep 17 00:00:00 2001 From: Wes McKinney Date: Fri, 22 Aug 2025 17:06:16 +0200 Subject: [PATCH] Add option to always show the collapse button in the data explorer --- .../ui/positronComponents/splitters/verticalSplitter.tsx | 6 +++++- .../dataExplorerPanel/components/dataExplorer.tsx | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/vs/base/browser/ui/positronComponents/splitters/verticalSplitter.tsx b/src/vs/base/browser/ui/positronComponents/splitters/verticalSplitter.tsx index 0a439d940d3d..a91133f0f3f1 100644 --- a/src/vs/base/browser/ui/positronComponents/splitters/verticalSplitter.tsx +++ b/src/vs/base/browser/ui/positronComponents/splitters/verticalSplitter.tsx @@ -44,10 +44,12 @@ type VerticalSplitterCollapseProps = | { readonly collapsible?: false; readonly isCollapsed?: never; readonly onCollapsedChanged?: never; + readonly alwaysShowExpandCollapseButton?: never; } | { readonly collapsible: true; readonly isCollapsed: boolean; readonly onCollapsedChanged: (collapsed: boolean) => void; + readonly alwaysShowExpandCollapseButton?: boolean; }; /** @@ -80,6 +82,7 @@ const getSashSize = (configurationService: IConfigurationService) => const getHoverDelay = (configurationService: IConfigurationService) => configurationService.getValue('workbench.sash.hoverDelay'); + /** * Determines whether a point is inside an element. * @param x The X coordinate. @@ -136,6 +139,7 @@ export const VerticalSplitter = ({ showSash, collapsible, isCollapsed, + alwaysShowExpandCollapseButton, onCollapsedChanged, onBeginResize, onResize, @@ -412,7 +416,7 @@ export const VerticalSplitter = ({ /> } - {collapsible && (hovering || resizing || collapsed) && + {collapsible && (alwaysShowExpandCollapseButton || hovering || resizing || collapsed) &&