From 8a95b13711e810176bb74f0dbc137e2304ba8835 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Mon, 9 Dec 2024 17:03:29 -0800 Subject: [PATCH] minor changes --- .../react/src/sidebar-tsx/SidebarProviderSettings.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarProviderSettings.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarProviderSettings.tsx index 074ec399..471f162a 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarProviderSettings.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarProviderSettings.tsx @@ -4,15 +4,13 @@ *--------------------------------------------------------------------------------------------*/ import React, { Fragment } from 'react' -import { descOfSettingName, inputTypeOfSettingName, ProviderName, providerNames, voidProviderDefaults } from '../../../../../../../platform/void/common/configTypes.js' +import { descOfSettingName, inputTypeOfSettingName, ProviderName, providerNames } from '../../../../../../../platform/void/common/configTypes.js' import { VoidCheckBox, VoidInputBox, VoidSelectBox } from './inputs.js' import { useConfigState, useService } from '../util/services.js' const SettingsForProvider = ({ providerName }: { providerName: ProviderName }) => { const voidConfigState = useConfigState() const voidConfigService = useService('configStateService') - console.log('CONFIG!', voidConfigState) - console.log('provider:', providerName, voidConfigState[providerName]) const { models, model, ...others } = voidConfigState[providerName] return <> @@ -20,7 +18,6 @@ const SettingsForProvider = ({ providerName }: { providerName: ProviderName }) = {/* other settings (e.g. api key) */} {Object.entries(others).map(([settingName, defaultVal], i) => { - console.log('--- entry:', providerName, settingName, defaultVal) const sName = settingName as keyof typeof others return @@ -37,7 +34,7 @@ const SettingsForProvider = ({ providerName }: { providerName: ProviderName }) = { () => { voidConfigService.setState(providerName, sName, newVal) } }} - placeholder={settingName} + placeholder={defaultVal} multiline={false} inputBoxRef={{ current: null }} />}