Skip to content
Discussion options

You must be logged in to vote

Hey @luiz290788,

we do have an example for multiple languages in one language server over at the requirements example. Langium doesn't really care whether you're running in a node or browser/webworker context, so that should work as expected.

Note that once you add more than one language to a shared module, the input files need to have the correct file extension to pick the respective language service instance. With just one language, the shared service instance will always return the singleton, independent of the file extension.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luiz290788
Comment options

Answer selected by luiz290788
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