From 512e291ed39b64325035cfe2d548bea5ecc03b83 Mon Sep 17 00:00:00 2001
From: Abdelrahman Abounegm Stella in Langium
Please select which grammar definition you want to use with monaco-editor:
- Stella + Monarch (Classic monaco-editor config)
-
Stella + Textmate (Extended Vscode Extension Config)
diff --git a/src/setupClassic.ts b/src/setupClassic.ts deleted file mode 100644 index 3fe47b4..0000000 --- a/src/setupClassic.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { - MonacoEditorLanguageClientWrapper, - UserConfig, -} from "monaco-editor-wrapper"; -import { code, configureWorker, defineUserServices } from "./setupCommon.js"; -import monarchSyntax from "./syntaxes/stella.monarch.js"; - -export const setupConfigClassic = (): UserConfig => { - return { - wrapperConfig: { - serviceConfig: defineUserServices(), - editorAppConfig: { - $type: "classic", - languageId: "stella", - code, - useDiffEditor: false, - languageExtensionConfig: { id: "langium" }, - languageDef: monarchSyntax, - editorOptions: { - "semanticHighlighting.enabled": true, - theme: "vs-dark", - }, - }, - }, - languageClientConfig: configureWorker(), - }; -}; - -export const executeClassic = async (htmlElement: HTMLElement) => { - const userConfig = setupConfigClassic(); - const wrapper = new MonacoEditorLanguageClientWrapper(); - await wrapper.initAndStart(userConfig, htmlElement); -}; diff --git a/static/monacoClassic.html b/static/monacoClassic.html deleted file mode 100644 index 577b326..0000000 --- a/static/monacoClassic.html +++ /dev/null @@ -1,31 +0,0 @@ - - -
- - - -
- -
-