Function
parseThemeString
(themeString: string | undefined)
Source from the content-addressed store, hash-verified
| 35 | } |
| 36 | |
| 37 | function parseThemeString(themeString: string | undefined): any { |
| 38 | themeString = themeString |
| 39 | ?.split("\n") |
| 40 | .filter((line) => { |
| 41 | return !line.trim().startsWith("//"); |
| 42 | }) |
| 43 | .map(stripInLineComment) |
| 44 | .join("\n"); |
| 45 | return JSON.parse(themeString ?? "{}"); |
| 46 | } |
| 47 | |
| 48 | export function getThemeString(): string { |
| 49 | const workbenchConfig = vscode.workspace.getConfiguration(); |
Tested by
no test coverage detected