Skip to content
Discussion options

You must be logged in to vote

Hi @einarhaaland,

Can I keep the projects separate and specify the outfile directory of the language-server-bundle to be in the React project? (Is the language server bundle all that is needed to have monaco use my dsl?)

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:

  1. Bundling the worker file as an artifact of the dsl project and copying it to the public/ folder as part of the build process.
  2. Only do the usual TypeScript -> JavaScript transformation in the dsl project and…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by einarhaaland
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants