Adding dsl to existing React project #772
-
I have two separate existing projects: Langium dsl and React. My goal is to add monaco editor + my Langium dsl to my existing React project. (Have been following the A-Z guide) The React project has files that already exist in the Langium dir like A couple of questions on what to do next:
Thank you for your patience as I am new to this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @einarhaaland,
Yes, that's what I would recommend. For the monaco-component (with the embedded language client) to use your language server, all that's needed is the bundle file. You need to make it available to the worker somehow. The ways in which we are doing this is by either:
I'm sure there are also other ways to accomplish this, but this is what we're currently using in our own projects. |
Beta Was this translation helpful? Give feedback.
Hi @einarhaaland,
Yes, that's what I would recommend. For the monaco-component (with the embedded language client) to use your language server, all that's needed is the bundle file. You need to make it available to the worker somehow. The ways in which we are doing this is by either:
public/
folder as part of the build process.