Skip to content

How to Handle Asynchronous Scoping #1308

Answered by msujew
ballcoach12 asked this question in Q&A
Discussion options

You must be logged in to vote

What would be the criteria for the findUnresolvedImports() function? In other words, what constitutes an unresolved import in this case?

An unresolved import points to a document (or multiple documents) that hasn't been loaded yet.

What is the purpose of the newDocuments variable? I don't see it used here, and it isn't clear to me what its type would be. I assume that it's a LangiumDocument.

I've updated the code snippet above. There was a small error. It was supposed to be used for the documentBuilder.update call.

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@msujew
Comment options

@ballcoach12
Comment options

@msujew
Comment options

@ballcoach12
Comment options

@msujew
Comment options

Comment options

You must be logged in to vote
1 reply
@msujew
Comment options

Answer selected by ballcoach12
Comment options

You must be logged in to vote
1 reply
@ballcoach12
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants