Skip to content
Discussion options

You must be logged in to vote

Hey @kristiannotari,

Glad to hear you're enjoying your time with Langium! Leave the GitHub repo a star ;)

I believe that modifying the text to-be-parsed in place is not a good idea. At the very least it will massively mess with all language services as you already mentioned, due to all offsets being incorrect compared to the original file that's displayed by the user. I think a best-practice solution involves the builtin libraries as well as some minor modification to the scoping mechanism.

For context: since I don't have imports/exports between files I reimplemented the computeExports method of the DefaultScopeComputation to export an empty array. Just so you know, and can, possibly, te…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@kristiannotari
Comment options

@msujew
Comment options

@kristiannotari
Comment options

@msujew
Comment options

@kristiannotari
Comment options

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