diff --git a/frontend/src/components/editor/editor.tsx b/frontend/src/components/editor/editor.tsx index e132f5e92..d9e8176eb 100644 --- a/frontend/src/components/editor/editor.tsx +++ b/frontend/src/components/editor/editor.tsx @@ -3,10 +3,12 @@ import { useEffect } from "react" import { EditorFunctionRead, editorListFunctions } from "@/client" import { - EditorProps, + loader, Editor as ReactMonacoEditor, + type EditorProps, type Monaco, } from "@monaco-editor/react" +import * as monaco from "monaco-editor" import { editor, IDisposable, IRange, languages } from "monaco-editor" import { cn } from "@/lib/utils" @@ -33,6 +35,8 @@ import { } from "@/components/editor/yaml-lang" import { CenteredSpinner } from "@/components/loading/spinner" +loader.config({ monaco }) + const constructDslLang = (): { conf: languages.LanguageConfiguration lang: languages.IMonarchLanguage