Multiple Files with Web-Editor(s) #1897
Unanswered
thomasbaar
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @thomasbaar, this isn't really related to Langium (we provide just the language server after all), so you're better off asking in repos that provide such a client solution. See for example the monaco-languageclient library and their app playground. In general, as long as your client solution correctly interfaces with the language server protocol, Langium will deal with it correctly. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When an input model becomes larger, it is generally a good idea to spread the model across multiple files. In this case - of course - one has to design the language in a way that every single file can be parsed successfully.
When working with VSCode-Extensions, this might work nicely: All input files in the workspace with the right file suffix (e.g. .hello) are parsed and the information flow between different files is usually done via import-statements and a careful design of scope-rules for identifiers.
My question: Is there something similar available for web-editors? One of the most convincing arguments for migrating from Xtext to Langium is the direct integration into web technologies of the latter. However - as far I have seen - all examples and tutorial projects just have ONE web editor. I would just love to see an example for a DSL, whose input can be split across multiple files (or web editor instances). Is anything available in this direction?
Thanks in advance,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions