create a helper function to get the color theme string only
This commit is contained in:
parent
b763713879
commit
9db09a75f7
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue