(themeName: string)
| 968 | } |
| 969 | |
| 970 | export function getSyntaxTheme(themeName: string): SyntaxTheme { |
| 971 | // highlight.js has no bat theme set, so env vars can't select alternate |
| 972 | // syntect themes. We still report the env var if set, for diagnostics. |
| 973 | const envTheme = |
| 974 | process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT ?? process.env.BAT_THEME |
| 975 | void envTheme |
| 976 | return { theme: defaultSyntaxThemeName(themeName), source: null } |
| 977 | } |
| 978 | |
| 979 | // Lazy loader to match vendor/color-diff-src/index.ts API |
| 980 | let cachedModule: NativeModule | null = null |
nothing calls this directly
no test coverage detected