summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/utils
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/utils')
-rw-r--r--packages/cli/src/ui/utils/CodeColorizer.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/cli/src/ui/utils/CodeColorizer.tsx b/packages/cli/src/ui/utils/CodeColorizer.tsx
index aaa183ab..068f6689 100644
--- a/packages/cli/src/ui/utils/CodeColorizer.tsx
+++ b/packages/cli/src/ui/utils/CodeColorizer.tsx
@@ -100,9 +100,10 @@ export function colorizeCode(
language: string | null,
availableHeight?: number,
maxWidth?: number,
+ theme?: Theme,
): React.ReactNode {
const codeToHighlight = code.replace(/\n$/, '');
- const activeTheme = themeManager.getActiveTheme();
+ const activeTheme = theme || themeManager.getActiveTheme();
try {
// Render the HAST tree using the adapted theme