|
@@ -22,6 +22,7 @@ import { defineTheme } from '../scripts/theme.js'
|
|
import bus from '../scripts/bus.js'
|
|
import bus from '../scripts/bus.js'
|
|
import EditorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker"
|
|
import EditorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker"
|
|
import JsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker"
|
|
import JsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker"
|
|
|
|
+import HtmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker"
|
|
import { getCurrentInstance, nextTick, onMounted, onUnmounted, provide, reactive, ref } from 'vue'
|
|
import { getCurrentInstance, nextTick, onMounted, onUnmounted, provide, reactive, ref } from 'vue'
|
|
import { initializeMagicScript } from '../scripts/editor/magic-script.js'
|
|
import { initializeMagicScript } from '../scripts/editor/magic-script.js'
|
|
import JavaClass from '../scripts/editor/java-class.js'
|
|
import JavaClass from '../scripts/editor/java-class.js'
|
|
@@ -40,6 +41,9 @@ self.MonacoEnvironment = {
|
|
if (label === 'json') {
|
|
if (label === 'json') {
|
|
return new JsonWorker()
|
|
return new JsonWorker()
|
|
}
|
|
}
|
|
|
|
+ if (label === 'html') {
|
|
|
|
+ return new HtmlWorker()
|
|
|
|
+ }
|
|
return new EditorWorker()
|
|
return new EditorWorker()
|
|
}
|
|
}
|
|
}
|
|
}
|