Closed SinnerAir closed 2 weeks ago
Indeed, monaco.editor.defineTheme
can only be used to define monaco/monarch themes.
As soon as you use the theme service override, you are expected to use a VSCode extension to declare it.
Thank you. I will try.
Happened! Thank you
it is impossible to specify your theme through the method
monaco.editor.defineTheme
.Version packages:
Despite the fact that when moving a call various errors appear:
if before initialization: Uncaught Error: Services are already initialized if after initialization: monaco-editor.js?v=27546643:2315 Uncaught TypeError: standaloneThemeService.defineTheme is not a function
Live demo: https://stackblitz.com/edit/stackblitz-starters-xqgvjd?file=script.js