From 609f4c9cbfc2f256360025d77f854e0104b03bc4 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Tue, 13 May 2025 17:27:46 -0700 Subject: [PATCH] UI --- .../void/browser/react/src/sidebar-tsx/SidebarChat.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index 0252381b..3587438b 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -2605,7 +2605,7 @@ const CommandBarInChat = () => { // !select-text cursor-auto - const fileDetailsContent =
+ const fileDetailsContent =
{sortedCommandBarURIs.map((uri, i) => { const basename = getBasename(uri.fsPath) @@ -2856,12 +2856,16 @@ export const SidebarChat = () => { // resolve mount info const isResolved = chatThreadsState.allThreads[threadId]?.state.mountedInfo?.mountedIsResolvedRef.current + useEffect(() => { if (isResolved) return chatThreadsState.allThreads[threadId]?.state.mountedInfo?._whenMountedResolver?.({ textAreaRef: textAreaRef, scrollToBottom: () => scrollToBottom(scrollContainerRef), }) + + // Trigger a window resize event to ensure proper layout calculations + window.dispatchEvent(new Event('resize')) }, [chatThreadsState, threadId, textAreaRef, scrollContainerRef, isResolved])