@@ -14,7 +14,7 @@ import {
1414 watchEffect ,
1515 inject ,
1616 watch ,
17- computed
17+ computed ,
1818} from ' vue'
1919import * as monaco from ' monaco-editor-core'
2020import { getOrCreateModel } from ' ./utils'
@@ -30,7 +30,7 @@ const props = withDefaults(
3030 mode? : PreviewMode
3131 }>(),
3232 {
33- readonly: false
33+ readonly: false ,
3434 }
3535)
3636
@@ -96,13 +96,13 @@ onMounted(async () => {
9696 automaticLayout: true ,
9797 scrollBeyondLastLine: false ,
9898 minimap: {
99- enabled: false
99+ enabled: false ,
100100 },
101101 inlineSuggest: {
102- enabled: false
102+ enabled: false ,
103103 },
104104 ' semanticHighlighting.enabled' : true ,
105- fixedOverflowWidgets: true
105+ fixedOverflowWidgets: true ,
106106 })
107107 editor .value = editorInstance
108108
@@ -119,7 +119,7 @@ onMounted(async () => {
119119 }
120120
121121 return false
122- }
122+ },
123123 })
124124
125125 // Support for semantic highlighting
@@ -147,7 +147,7 @@ onMounted(async () => {
147147 if (props .readonly ) {
148148 watch (
149149 () => props .value ,
150- value => {
150+ ( value ) => {
151151 editorInstance .setValue (value || ' ' )
152152 monaco .editor .setModelLanguage (editorInstance .getModel ()! , lang .value )
153153 }
@@ -185,7 +185,7 @@ onMounted(async () => {
185185 emits (' change' , editorInstance .getValue ())
186186 })
187187
188- editorInstance .onDidChangeCursorSelection (e => {
188+ editorInstance .onDidChangeCursorSelection (( e ) => {
189189 const selection = e .selection
190190 const file = store .state .files [props .filename ]
191191 if (file ) {
0 commit comments