Skip to content

Commit

Permalink
fix: desync between icon pack and color theme (#431)
Browse files Browse the repository at this point in the history
Fixes #430: Sync icon pack broken when color theme is changed via UI
  • Loading branch information
younishd committed Aug 24, 2024
1 parent 2d7388f commit 88ea69d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/catppuccin-vsc/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ export const activate = async (context: ExtensionContext) => {
utils.UpdateTrigger.CONFIG_CHANGE,
);
}
// call the icon pack sync when the config changes
if (
event.affectsConfiguration("workbench.colorTheme") &&
config.syncWithIconPack
) {
utils.syncToIconPack();
}
}),

// call the icon pack sync when the theme changes
Expand Down

0 comments on commit 88ea69d

Please sign in to comment.