From 4fe9b50af97c0a1366653135dbb581cea3da7225 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:30:32 +0000 Subject: [PATCH] refactor: Remove vibrancy migration code The migration code for the 'vibrancy' config is no longer needed. This removes the `updateVibrancySetting` function and its call from the config migration logic. --- source/config.ts | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/source/config.ts b/source/config.ts index e1191e4..cc01331 100644 --- a/source/config.ts +++ b/source/config.ts @@ -218,45 +218,6 @@ const schema: Store.Schema = { }, }; -function updateVibrancySetting(store: Store): void { - const vibrancy = store.get('vibrancy'); - - if (!is.macos || !vibrancy) { - store.set('vibrancy', 'none'); - } else { - // TODO: This can be removed in a future version. - // Migration for the `vibrancy` config. - switch (store.get('vibrancy') as any) { - case true: { - store.set('vibrancy', 'full'); - break; - } - - case false: { - store.set('vibrancy', 'sidebar'); - break; - } - - case 'sidebar': - case 'full': { - break; - } - - case 'none': { - // 'none' is already handled by the `!vibrancy` check above, - // but keeping this case for completeness if the initial check changes. - break; - } - - default: { - // Handle any unexpected values safely - store.set('vibrancy', 'sidebar'); - break; - } - } - } -} - function updateSidebarSetting(store: Store): void { if (store.get('sidebarHidden')) { store.set('sidebar', 'hidden'); @@ -291,7 +252,6 @@ function updateThemeSetting(store: Store): void { } function migrate(store: Store): void { - updateVibrancySetting(store); updateSidebarSetting(store); updateThemeSetting(store); }