fix(monaco): monaco options not working (#767)
This commit is contained in:
parent
5fa1b2b11c
commit
fde6eca787
|
@ -74,7 +74,13 @@ export default {
|
|||
const initMonaco = (monaco) => {
|
||||
emit('editorWillMount', vueMonaco.monaco)
|
||||
|
||||
const options = { ...defaultOptions, ...props, theme: globalMonacoEditorTheme.value }
|
||||
const options = {
|
||||
...defaultOptions,
|
||||
value: props.value,
|
||||
theme: globalMonacoEditorTheme.value,
|
||||
language: props.language,
|
||||
...props.options
|
||||
}
|
||||
|
||||
if (props.diffEditor) {
|
||||
vueMonaco.editor = monaco.editor.createDiffEditor(monacoRef.value, options)
|
||||
|
|
Loading…
Reference in New Issue