Skip to content

Commit 4f1bb74

Browse files
committed
Consider high contrast light
1 parent 2f7d83b commit 4f1bb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/vscode/src/lsp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export async function activateLsp(
158158
if (client) {
159159
// Map VS Code theme kinds to light/dark. HighContrast themes are treated as dark
160160
// since they typically have light text on dark backgrounds
161-
const kind = window.activeColorTheme.kind === ColorThemeKind.Light ? "light" : "dark";
161+
const kind = (window.activeColorTheme.kind === ColorThemeKind.Light || window.activeColorTheme.kind === ColorThemeKind.HighContrastLight) ? "light" : "dark";
162162
client.sendNotification("quarto/didChangeActiveColorTheme", { kind });
163163
}
164164
};

0 commit comments

Comments
 (0)