@@ -25,7 +25,7 @@ const props = withDefaults(
2525 }>(),
2626 {
2727 readonly: false ,
28- }
28+ },
2929)
3030
3131const emit = defineEmits <{
@@ -43,7 +43,7 @@ const lang = computed(() => (props.mode === 'css' ? 'css' : 'javascript'))
4343
4444const replTheme = inject <Ref <' dark' | ' light' >>(' theme' )!
4545onMounted (async () => {
46- const theme = await import (' ./highlight' ).then (r => r .registerHighlighter ())
46+ const theme = await import (' ./highlight' ).then (( r ) => r .registerHighlighter ())
4747 ready .value = true
4848 await nextTick ()
4949
@@ -76,7 +76,7 @@ onMounted(async () => {
7676 t .getTokenStyleMetadata = (
7777 type : string ,
7878 modifiers : string [],
79- _language : string
79+ _language : string ,
8080 ) => {
8181 const _readonly = modifiers .includes (' readonly' )
8282 switch (type ) {
@@ -99,11 +99,11 @@ onMounted(async () => {
9999 if (editorInstance .getValue () === value ) return
100100 editorInstance .setValue (value || ' ' )
101101 },
102- { immediate: true }
102+ { immediate: true },
103103 )
104104
105105 watch (lang , (lang ) =>
106- monaco .editor .setModelLanguage (editorInstance .getModel ()! , lang )
106+ monaco .editor .setModelLanguage (editorInstance .getModel ()! , lang ),
107107 )
108108
109109 if (! props .readonly ) {
@@ -116,7 +116,7 @@ onMounted(async () => {
116116 const model = getOrCreateModel (
117117 monaco .Uri .parse (` file:///${props .filename } ` ),
118118 file .language ,
119- file .code
119+ file .code ,
120120 )
121121
122122 const oldFile = oldFilename ? store .state .files [oldFilename ] : null
@@ -131,7 +131,7 @@ onMounted(async () => {
131131 editorInstance .focus ()
132132 }
133133 },
134- { immediate: true }
134+ { immediate: true },
135135 )
136136 }
137137
0 commit comments