Skip to content

Commit df04f67

Browse files
daniel-lxsPrasangAPrajapati
authored andcommitted
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 59b1de9 commit df04f67

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
@@ -860,7 +860,6 @@ const ApiOptions = ({
860860
<DiffSettingsControl
861861
diffEnabled={apiConfiguration.diffEnabled}
862862
fuzzyMatchThreshold={apiConfiguration.fuzzyMatchThreshold}
863-
provider={apiConfiguration.apiProvider}
864863
onChange={(field, value) => setApiConfigurationField(field, value)}
865864
/>
866865
{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
@@ -725,9 +725,6 @@
725725
"multiBlock": "Multi-block diff strategy allows updating multiple code blocks in a file in one request."
726726
}
727727
},
728-
"watsonx": {
729-
"description": "When enabled, Roo will be able to edit files more quickly and will automatically reject truncated full-file writes."
730-
},
731728
"matchPrecision": {
732729
"label": "Match precision",
733730
"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)