Browse Source

refactor(gui-v2): monaco editor setup

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
cd0d142e7f
  1. 10
      packages/nc-gui-v2/components/monaco/Editor.vue

10
packages/nc-gui-v2/components/monaco/Editor.vue

@ -28,7 +28,15 @@ onMounted(() => {
editor = monaco.editor.create(root.value, {
model,
theme: 'dark',
theme: 'vs',
foldingStrategy: 'indentation',
selectOnLineNumbers: true,
scrollbar: {
verticalScrollbarSize: 8,
horizontalScrollbarSize: 8,
},
tabSize: 2,
automaticLayout: true,
})
editor.onDidChangeModelContent(async (e) => {

Loading…
Cancel
Save