Skip to content

Why is the URI required for the document from a string? #1395

Closed Answered by msujew
Lemour-sudo asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Lemour-sudo,

in essence, the uri is the unique identifier of a document. Since Langium is mostly designed to support language servers, and all documents inside of a language server require a uri identifier (otherwise they're not addressable), we decided to make it a mandatory property. From a maintenance perspective, having it optional would make every bit of code dealing with those documents very verbose.

Replies: 1 comment

Comment options

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