Skip to content

Commit c188261

Browse files
committed
fix: remove unrelated IBM watsonx special case from diff settings
- Removed watsonx-specific logic from DiffSettingsControl component - Removed 'advanced.diff.watsonx.description' translation key from all 18 language files - IBM watsonx provider has nothing to do with diff settings
1 parent 5f49196 commit c188261

File tree

20 files changed

+1
-60
lines changed

20 files changed

+1
-60
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,6 @@ const ApiOptions = ({
837837
<DiffSettingsControl
838838
diffEnabled={apiConfiguration.diffEnabled}
839839
fuzzyMatchThreshold={apiConfiguration.fuzzyMatchThreshold}
840-
provider={apiConfiguration.apiProvider}
841840
onChange={(field, value) => setApiConfigurationField(field, value)}
842841
/>
843842
{selectedModelInfo?.supportsTemperature !== false && (

webview-ui/src/components/settings/DiffSettingsControl.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
66
interface DiffSettingsControlProps {
77
diffEnabled?: boolean
88
fuzzyMatchThreshold?: number
9-
provider?: string
109
onChange: (field: "diffEnabled" | "fuzzyMatchThreshold", value: any) => void
1110
}
1211

1312
export const DiffSettingsControl: React.FC<DiffSettingsControlProps> = ({
1413
diffEnabled = true,
1514
fuzzyMatchThreshold = 1.0,
16-
provider,
1715
onChange,
1816
}) => {
1917
const { t } = useAppTranslation()
@@ -39,9 +37,7 @@ export const DiffSettingsControl: React.FC<DiffSettingsControlProps> = ({
3937
<span className="font-medium">{t("settings:advanced.diff.label")}</span>
4038
</VSCodeCheckbox>
4139
<div className="text-vscode-descriptionForeground text-sm">
42-
{provider === "ibm-watsonx"
43-
? t("settings:advanced.diff.watsonx.description")
44-
: t("settings:advanced.diff.description")}
40+
{t("settings:advanced.diff.description")}
4541
</div>
4642
</div>
4743

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,6 @@
709709
"multiBlock": "Multi-block diff strategy allows updating multiple code blocks in a file in one request."
710710
}
711711
},
712-
"watsonx": {
713-
"description": "When enabled, Roo will be able to edit files more quickly and will automatically reject truncated full-file writes."
714-
},
715712
"matchPrecision": {
716713
"label": "Match precision",
717714
"description": "This slider controls how precisely code sections must match when applying diffs. Lower values allow more flexible matching but increase the risk of incorrect replacements. Use values below 100% with extreme caution."

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/id/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/it/settings.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)