Skip to content

Commit 883f3e9

Browse files
committed
feat(settings): add options for diff view auto focus and tab management
1 parent 43dc92f commit 883f3e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/types/src/provider-settings.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export type ProviderSettingsEntry = z.infer<typeof providerSettingsEntrySchema>
5555
const baseProviderSettingsSchema = z.object({
5656
includeMaxTokens: z.boolean().optional(),
5757
diffEnabled: z.boolean().optional(),
58+
diffViewAutoFocus: z.boolean().optional(),
59+
autoCloseRooTabs: z.boolean().optional(),
60+
autoCloseAllRooTabs: z.boolean().optional(),
5861
fuzzyMatchThreshold: z.number().optional(),
5962
modelTemperature: z.number().nullish(),
6063
rateLimitSeconds: z.number().optional(),
@@ -338,6 +341,9 @@ export const PROVIDER_SETTINGS_KEYS = keysOf<ProviderSettings>()([
338341
// Generic
339342
"includeMaxTokens",
340343
"diffEnabled",
344+
"diffViewAutoFocus",
345+
"autoCloseRooTabs",
346+
"autoCloseAllRooTabs",
341347
"fuzzyMatchThreshold",
342348
"modelTemperature",
343349
"rateLimitSeconds",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ const ApiOptions = ({
464464
diffEnabled={apiConfiguration.diffEnabled}
465465
diffViewAutoFocus={apiConfiguration.diffViewAutoFocus}
466466
autoCloseRooTabs={apiConfiguration.autoCloseRooTabs}
467-
autoCloseAllRooTabs={apiConfiguration.autoCloseAllRooTabs} // Pass new setting
467+
autoCloseAllRooTabs={apiConfiguration.autoCloseAllRooTabs}
468468
fuzzyMatchThreshold={apiConfiguration.fuzzyMatchThreshold}
469469
onChange={(field, value) => setApiConfigurationField(field, value)}
470470
/>

0 commit comments

Comments
 (0)