From a33160f33ee86bd93add4336e69a6767ebed90b7 Mon Sep 17 00:00:00 2001 From: Mathew Pareles Date: Sat, 15 Mar 2025 04:19:58 -0700 Subject: [PATCH] loading --- .../react/src/sidebar-tsx/SidebarChat.tsx | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) 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 4d5e3ac6..cc419ba7 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 @@ -268,6 +268,7 @@ interface VoidChatAreaProps { showModelDropdown?: boolean; showSelections?: boolean; showProspectiveSelections?: boolean; + loadingIcon?: React.ReactNode; selections?: StagingSelectionItem[] setSelections?: (s: StagingSelectionItem[]) => void @@ -297,6 +298,7 @@ export const VoidChatArea: React.FC = ({ selections, setSelections, featureName, + loadingIcon, }) => { return (
= ({
)} - {isStreaming ? ( - - ) : ( - - )} + +
+ + {isStreaming && loadingIcon} + + {isStreaming ? ( + + ) : ( + + )} +
+ );