Open soyrubio opened 2 months ago
The vscode API already allows you to get that information:
window.activeColorTheme.kind
Is that good enough? If not can you elaborate on your use case?
Note if your extension has code you could use that API to create a context variable (that encapsulates even more state)
Thanks, didn't know about window.activeColorTheme.kind
, this solves the issue 👍
It would be beneficial to have a context variable available showing if the current theme is light or dark, i.e.
usesLightTheme
andusesDarkTheme
.