Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix desync between icon pack and color theme #431

Merged
merged 1 commit into from
Aug 24, 2024

Conversation

younishd
Copy link
Contributor

The root cause of the problem is that VS Code seems to fire the onDidChangeActiveColorTheme event before the config is persisted, thus our syncToIconPack() runs too early and in turn getActiveTheme() reads back the not-yet-updated theme from the configuration.

The fix is to listen for both the config change and the active theme change (needed to handle the autoDetectColorScheme edge case).

Solves #430.

Fixes catppuccin#430: Sync icon pack broken when color theme is changed via UI
Copy link
Member

@backwardspy backwardspy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice one, thanks!

@backwardspy backwardspy linked an issue Aug 24, 2024 that may be closed by this pull request
@backwardspy backwardspy merged commit 88ea69d into catppuccin:main Aug 24, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sync icon pack broken when color theme is changed via UI
2 participants