Since #46, the preview ships 10 built-in themes selectable via extension.markeditPreview.themeName. However, the preview theme is static: switching the app/editor theme leaves the preview on whatever themeName says, so Editor and Preview modes look mismatched unless the user manually keeps the setting in sync.
Now that the theme infrastructure exists, would you consider a lightweight auto-follow?
- When the app's current theme has a same-named (or explicitly mapped) preview theme — e.g. Dracula, Solarized, Rose Pine, Xcode, Synthwave '84, Winter Is Coming — pick it automatically.
- Fall back to the current
themeName behavior when there is no match.
- Perhaps behind an opt-in like
"themeName": "auto", so existing configurations are unaffected.
Unlike #13 (which predated the built-in themes and would have required porting every app theme), this is just a name-mapping between two lists that already exist. Happy to contribute a PR if the approach sounds acceptable.
Since #46, the preview ships 10 built-in themes selectable via
extension.markeditPreview.themeName. However, the preview theme is static: switching the app/editor theme leaves the preview on whateverthemeNamesays, so Editor and Preview modes look mismatched unless the user manually keeps the setting in sync.Now that the theme infrastructure exists, would you consider a lightweight auto-follow?
themeNamebehavior when there is no match."themeName": "auto", so existing configurations are unaffected.Unlike #13 (which predated the built-in themes and would have required porting every app theme), this is just a name-mapping between two lists that already exist. Happy to contribute a PR if the approach sounds acceptable.