Method SetTheme
SetTheme(ThemeName)
Switches the active theme used for colorization. Clears the grammar cache since theme changes may affect tokenization colors.
[Obsolete("Syntax colors are resolved from ThemeManager.Theme via VisualRole.Code* roles.")]
public void SetTheme(ThemeName theme)
Parameters
themeThemeNameThe new VS Code theme to use.