JT-View-Exports-SVG.reloadTheme command reloads the built-in editor theme integration in the playground, ensuring the viewer reflects your current VS Code theme settings.
Command Details
Command ID
JT-View-Exports-SVG.reloadThemeDisplay Title
Reload the built-in editor theme in the playground
Category
View Exports SVG
$(sync) (sync/refresh icon)
Availability
This command is only available when the View Exports SVG webview panel is active.Enablement condition:
activeWebviewPanelId == 'JT-View-Exports-SVG'Overview
The reload theme command synchronizes the viewer’s appearance with your current VS Code theme settings. This is useful when:- You’ve changed your VS Code color theme
- Theme colors aren’t displaying correctly in the viewer
- You’ve made custom theme modifications
- The viewer theme seems out of sync
What Gets Reloaded
When you reload the theme, the extension:- Retrieves current theme settings from VS Code
- Reloads extension theme data specific to your workspace
- Updates editor configuration in the viewer
- Sends theme information to the webview panel
- Refreshes visual elements to match the current theme
Theme Components Updated
Extension Theme
Custom theme data and color schemes for the extension
Editor Config
Editor-specific settings and preferences
Theme Kind
Light, dark, or high-contrast theme mode
Visual Elements
UI colors, backgrounds, and visual styling
Usage
From the Editor Title Bar
The reload theme button may be available in the viewer’s toolbar (look for the sync icon).From Command Palette
Behavior
When theme is found
When theme is found
- Extension theme data is reloaded
- Theme information is sent to the webview
- Editor configuration is updated
- Visual elements refresh automatically
- Viewer reflects the current VS Code theme
When theme is not found
When theme is not found
- An information message is displayed: “No theme found for the current workspace”
- The viewer continues using the previously loaded theme
- You may need to check your workspace theme configuration
When to Use Reload Theme
Theme Changed
You’ve switched to a different VS Code color theme
Theme Modified
You’ve edited custom theme settings
Appearance Issues
Colors or styling don’t look correct in the viewer
Workspace Switch
You’ve switched to a workspace with different theme settings
Troubleshooting
Theme Not Applying
If the theme doesn’t reload correctly:- Check VS Code theme: Ensure your VS Code theme is properly installed and active
- Reload window: Try reloading the entire VS Code window (Developer: Reload Window)
- Check workspace settings: Verify workspace-specific theme settings
- Restart extension: Close and reopen the View Exports SVG panel
No Theme Found Message
If you see “No theme found for the current workspace”:Related Commands
- Developer Tools - DevTools also reflect theme changes
- Show Menu - Open the viewer to use theme features