create a helper function to get the color theme string only

This commit is contained in:
Jacob Kim 2025-06-24 18:12:29 -07:00
parent b763713879
commit 9db09a75f7

View file

@ -45,6 +45,14 @@ function parseThemeString(themeString: string | undefined): any {
return JSON.parse(themeString ?? "{}");
}
export function getThemeString(): string {
const workbenchConfig = vscode.workspace.getConfiguration();
const themeString =
workbenchConfig.get<string>("workbench.colorTheme") ??
"Default Dark Modern";
return themeString;
}
export function getTheme() {
let currentTheme: string | undefined = undefined;
// Get color theme from settings