@@ -12,13 +12,15 @@ import React, {
1212import {
1313 CheckCheck ,
1414 SquareMousePointer ,
15+ Webhook ,
1516 GitBranch ,
1617 Bell ,
1718 Database ,
1819 SquareTerminal ,
1920 FlaskConical ,
2021 AlertTriangle ,
2122 Globe ,
23+ Info ,
2224 MessageSquare ,
2325 LucideIcon ,
2426} from "lucide-react"
@@ -49,6 +51,9 @@ import {
4951
5052import { Tab , TabContent , TabHeader , TabList , TabTrigger } from "../common/Tab"
5153import { SetCachedStateField , SetExperimentEnabled } from "./types"
54+ import { SectionHeader } from "./SectionHeader"
55+ import ApiConfigManager from "./ApiConfigManager"
56+ import ApiOptions from "./ApiOptions"
5257import { AutoApproveSettings } from "./AutoApproveSettings"
5358import { BrowserSettings } from "./BrowserSettings"
5459import { CheckpointSettings } from "./CheckpointSettings"
@@ -57,6 +62,8 @@ import { ContextManagementSettings } from "./ContextManagementSettings"
5762import { TerminalSettings } from "./TerminalSettings"
5863import { ExperimentalSettings } from "./ExperimentalSettings"
5964import { LanguageSettings } from "./LanguageSettings"
65+ import { About } from "./About"
66+ import { Section } from "./Section"
6067import PromptsSettings from "./PromptsSettings"
6168import { cn } from "@/lib/utils"
6269
@@ -82,7 +89,7 @@ const sectionNames = [
8289 "prompts" ,
8390 "experimental" ,
8491 "language" ,
85- // "about",
92+ "about" ,
8693] as const
8794
8895type SectionName = ( typeof sectionNames ) [ number ]
@@ -417,7 +424,7 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
417424 { id : "prompts" , icon : MessageSquare } ,
418425 { id : "experimental" , icon : FlaskConical } ,
419426 { id : "language" , icon : Globe } ,
420- // { id: "about", icon: Info },
427+ { id : "about" , icon : Info } ,
421428 ] ,
422429 [ ] , // No dependencies needed now
423430 )
@@ -554,6 +561,55 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
554561
555562 { /* Content area */ }
556563 < TabContent className = "p-0 flex-1 overflow-auto" >
564+ { /* Providers Section */ }
565+ { /* {activeTab === "providers" && (
566+ <div>
567+ <SectionHeader>
568+ <div className="flex items-center gap-2">
569+ <Webhook className="w-4" />
570+ <div>{t("settings:sections.providers")}</div>
571+ </div>
572+ </SectionHeader>
573+ -
574+ <Section>
575+ <ApiConfigManager
576+ currentApiConfigName={currentApiConfigName}
577+ listApiConfigMeta={listApiConfigMeta}
578+ onSelectConfig={(configName: string) =>
579+ checkUnsaveChanges(() =>
580+ vscode.postMessage({ type: "loadApiConfiguration", text: configName }),
581+ )
582+ }
583+ onDeleteConfig={(configName: string) =>
584+ vscode.postMessage({ type: "deleteApiConfiguration", text: configName })
585+ }
586+ onRenameConfig={(oldName: string, newName: string) => {
587+ vscode.postMessage({
588+ type: "renameApiConfiguration",
589+ values: { oldName, newName },
590+ apiConfiguration,
591+ })
592+ prevApiConfigName.current = newName
593+ }}
594+ onUpsertConfig={(configName: string) =>
595+ vscode.postMessage({
596+ type: "upsertApiConfiguration",
597+ text: configName,
598+ apiConfiguration,
599+ })
600+ }
601+ />
602+ <ApiOptions
603+ uriScheme={uriScheme}
604+ apiConfiguration={apiConfiguration}
605+ setApiConfigurationField={setApiConfigurationField}
606+ errorMessage={errorMessage}
607+ setErrorMessage={setErrorMessage}
608+ />
609+ </Section>
610+ </div>
611+ )} */ }
612+
557613 { /* Auto-Approve Section */ }
558614 { activeTab === "autoApprove" && (
559615 < AutoApproveSettings
@@ -669,6 +725,11 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
669725 { activeTab === "language" && (
670726 < LanguageSettings language = { language || "en" } setCachedStateField = { setCachedStateField } />
671727 ) }
728+
729+ { /* About Section */ }
730+ { activeTab === "about" && (
731+ < About telemetrySetting = { telemetrySetting } setTelemetrySetting = { setTelemetrySetting } />
732+ ) }
672733 </ TabContent >
673734 </ div >
674735
0 commit comments