MCPcopy Create free account
hub / github.com/continuedev/continue / parseThemeString

Function parseThemeString

extensions/vscode/src/util/getTheme.ts:37–46  ·  view source on GitHub ↗
(themeString: string | undefined)

Source from the content-addressed store, hash-verified

35}
36
37function 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
48export function getThemeString(): string {
49 const workbenchConfig = vscode.workspace.getConfiguration();

Callers 1

getThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected