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 d3c1ce8b..90df4a53 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 @@ -94,45 +94,46 @@ export const IconWarning = ({ size, className = '' }: { size: number, className? stroke="currentColor" fill="currentColor" strokeWidth="0" - viewBox="0 0 24 24" + viewBox="0 0 16 16" width={size} height={size} xmlns="http://www.w3.org/2000/svg" > - {/* Warning triangle */} - - - {/* Exclamation mark */} - - + ); }; type ButtonProps = ButtonHTMLAttributes +const DEFAULT_BUTTON_SIZE = 20; export const ButtonSubmit = ({ className, disabled, ...props }: ButtonProps & Required>) => { + return - + } export const ButtonStop = ({ className, ...props }: ButtonHTMLAttributes) => { return - + } diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/ModelDropdown.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/ModelDropdown.tsx index 2ec2db72..26961573 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/ModelDropdown.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/ModelDropdown.tsx @@ -9,7 +9,7 @@ import { useSettingsState, useRefreshModelState, useAccessor } from '../util/ser import { VoidSelectBox } from '../util/inputs.js' import { SelectBox } from '../../../../../../../base/browser/ui/selectBox/selectBox.js' import { IconWarning } from '../sidebar-tsx/SidebarChat.js' - +import { OPEN_VOID_SETTINGS_ACTION_ID } from '../../../voidSettingsPane.js' const ModelSelectBox = ({ featureName }: { featureName: FeatureName }) => { const accessor = useAccessor() @@ -44,12 +44,29 @@ const ModelSelectBox = ({ featureName }: { featureName: FeatureName }) => { const DummySelectBox = () => { - return + const accessor = useAccessor() + const comandService = accessor.get('ICommandService') + + const openSettings = () => { + comandService.executeCommand(OPEN_VOID_SETTINGS_ACTION_ID); + }; + + return - Add a model + Model required // return