Skip to content
Discussion options

You must be logged in to vote

Hey @goto40,

Is this the way langium CLIs are meant to be built in case of multi file models (manually loading model files)?

While you can use Langium like this to build a CLI, it's probably easier to just use the services.shared.workspace.WorkspaceManager.initialize() function to initialize a whole folder and all documents within it. This is effectively what we call from the language server to initialize the whole vscode workspace (with all folders). If you need more fine grained control, you might want to go for the approach that you're already using though.

What is the role of the NodeFileSystem (should I use fs, path, and glob- or not/and why not)?

The NodeFileSystem allows anyone…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by goto40
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