Skip to content

Conversation

@zetaloop
Copy link

Replaced the use of workbench.colorTheme with the newer window.activeColorTheme.kind API.

This change improves compatibility with VSCode's "Window: Auto Detect Color Scheme" setting.
When that setting is enabled, VSCode does not update workbench.colorTheme, but instead uses preferredDarkColorTheme or preferredLightColorTheme internally.
As a result, relying on colorTheme alone may no longer reflect the actual active theme.

The new API correctly reflects the effective color theme at runtime, ensuring PlatformIO Home applies the appropriate light/dark mode on load.

Before
Before

After
After

@CLAassistant
Copy link

CLAassistant commented Apr 22, 2025

CLA assistant check
All committers have signed the CLA.

@stale
Copy link

stale bot commented Dec 18, 2025

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants