-
We are exploring Langium to see if it can be used in our IDE. Our language grammar is similar to Lox: https://github.com/TypeFox/langium-lox/blob/main/src/language-server/lox.langium. But in our IDE, the variable declarations are not allowed in editor. The variables infomation (name, type...) can be obtained as different format, like JSON. How to let Langium know those variables? Is it enough to only implement our own scope provider? Shall we also need to implement our own NameProvider and ScopeComputation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @ZCH2005, have you seen #1329? I think the question is fairly similar. The anwser I posted in #1329 (comment) should help you along. |
Beta Was this translation helpful? Give feedback.
-
Hi @msujew, Thank your very much for the reply.
In the last part of the buildin-libraries, the DslLibraryFileSystemProvider was added to src/extension.ts. But we are using Monaco Editor Wrapper and I could not figure out how to implement the same DslLibraryFileSystemProvider in Monaco Editor Wrapper, do you have any samples? |
Beta Was this translation helpful? Give feedback.
So you're saying it works? That's great!
You are best served to ask the maintainers directly.