Skip to content

Commit 0000448

Browse files
committed
fix: Disable high contrast auto detection as it messes up with custom themes
1 parent 625a45b commit 0000448

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/monaco.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ monaco.extra.StandaloneServices.initialize({
1818
)
1919
}
2020
})
21+
// Disable high contrast autodetection because it fallbacks on the hc-black no matter what
22+
monaco.extra.StandaloneServices.get(monaco.editor.IStandaloneThemeService).setAutoDetectHighContrast(false)
2123

2224
// Force EOL to be '\n' even on Windows
2325
const configurationService = monaco.extra.StandaloneServices.get(monaco.extra.IConfigurationService)

0 commit comments

Comments
 (0)