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

Sync icon pack broken when color theme is changed via UI #430

Closed
younishd opened this issue Aug 22, 2024 · 1 comment · Fixed by #431
Closed

Sync icon pack broken when color theme is changed via UI #430

younishd opened this issue Aug 22, 2024 · 1 comment · Fixed by #431

Comments

@younishd
Copy link
Contributor

younishd commented Aug 22, 2024

When I change the color theme via the color theme selector the icon pack sync doesn't work as expected. It looks like the syncToIconPack() function gets called "too early" and still sees the previous theme instead of the current theme. You can see in the screen recording that the icon theme is always set to whatever the previous color theme was.

Screen.Recording.2024-08-22.at.12.11.33.mp4

On second thought this might be a VS Code limitation since we are listening on window.onDidChangeActiveColorTheme and one would probably expect that it is safe to fetch the new value after this event was fired. Perhaps VS Code changes the view and fires the event, before writing back the config? Could it be related to this recent change?

It is also worth noting that this doesn't happen if I edit the settings.json immediately.

@younishd younishd changed the title Sync icon pack lags behind when color theme is changed via UI Sync icon pack broken when color theme is changed via UI Aug 22, 2024
younishd added a commit to younishd/catppuccin-vscode that referenced this issue Aug 22, 2024
Fixes catppuccin#430: Sync icon pack broken when color theme is changed via UI
@younishd
Copy link
Contributor Author

I've proposed a fix in #431

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 a pull request may close this issue.

1 participant