-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
vscode-docs-view/src/codeHighlighter.ts
Lines 109 to 111 in dc69f7e
| if (typeof theme === 'string') { | |
| theme = await shiki.loadTheme(theme as any); | |
| } |
theme will not be load for Default Light+ or Default Dark+, because loadTheme need a path arg, not just a name.
src/codeHighlighter.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/codeHighlighter.ts b/src/codeHighlighter.ts
index 002d214..d941241 100644
--- a/src/codeHighlighter.ts
+++ b/src/codeHighlighter.ts
@@ -107,7 +107,7 @@ export class CodeHighlighter {
}
if (typeof theme === 'string') {
- theme = await shiki.loadTheme(theme as any);
+ theme = await shiki.loadTheme(`themes/${theme as any}.json`);
}
if (theme) {Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels