Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 179ab88

Browse files
committed
refactor(azure): hide API version field in Welcome view
The API version field is an advanced option that 99% of users won't change. Hide it in the onboarding Welcome view using the existing simplifySettings pattern (matches OpenRouter's approach for custom base URL).
1 parent e462255 commit 179ab88

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

  • webview-ui/src/components/settings/providers

webview-ui/src/components/settings/providers/Azure.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type AzureProps = {
1414
simplifySettings?: boolean
1515
}
1616

17-
export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps) => {
17+
export const Azure = ({ apiConfiguration, setApiConfigurationField, simplifySettings }: AzureProps) => {
1818
const { t } = useAppTranslation()
1919

2020
const handleInputChange = useCallback(
@@ -76,16 +76,20 @@ export const Azure = ({ apiConfiguration, setApiConfigurationField }: AzureProps
7676
<div className="text-sm text-vscode-descriptionForeground -mt-2">
7777
{t("settings:providers.apiKeyStorageNotice")}
7878
</div>
79-
<VSCodeTextField
80-
value={apiConfiguration?.azureApiVersion || ""}
81-
onInput={handleInputChange("azureApiVersion")}
82-
placeholder={`Default: ${azureOpenAiDefaultApiVersion}`}
83-
className="w-full">
84-
<label className="block font-medium mb-1">{t("settings:providers.azureApiVersion")}</label>
85-
</VSCodeTextField>
86-
<div className="text-sm text-vscode-descriptionForeground -mt-2">
87-
{t("settings:providers.azureApiVersionDescription")}
88-
</div>
79+
{!simplifySettings && (
80+
<>
81+
<VSCodeTextField
82+
value={apiConfiguration?.azureApiVersion || ""}
83+
onInput={handleInputChange("azureApiVersion")}
84+
placeholder={`Default: ${azureOpenAiDefaultApiVersion}`}
85+
className="w-full">
86+
<label className="block font-medium mb-1">{t("settings:providers.azureApiVersion")}</label>
87+
</VSCodeTextField>
88+
<div className="text-sm text-vscode-descriptionForeground -mt-2">
89+
{t("settings:providers.azureApiVersionDescription")}
90+
</div>
91+
</>
92+
)}
8993
</>
9094
)
9195
}

0 commit comments

Comments
 (0)