Open ramiy opened 5 years ago
My theme won't load at all, not sure if I am doing this right.
<monaco-editor class="editor" v-model="grammar" language="javascript" :options="editorOptions">
</monaco-editor>
data() {
return {
editorOptions: {
selectOnLineNumbers: true,
theme: 'vs-dark'
},
grammar: `grammar:
}
It does work when I set the attribute theme="vs-dark"
But was hoping to do it from options.
Having issues with the dark theme (
vs-dark
). Empty and small files are loaded with the dark them, large files loaded with the default white theme.This is
<TheEditor>
component. I removed lots of code from the original component for demonstration purpose. Note that it does not usesv-model
, instead it usesvalue
and@change
to interact with VueX store:With the following
vue.config.js
file:In any case, the dark theme CSS is not always loaded. Do you see why it happens?