Skip to content

Langium 2.0.0, loading documents effect #1188

Answered by goto40
goto40 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks again for your excellent support!

  • Overriding the document builder and call the onUpdate emitter was not solving my problem. (see comments below: #1190 fixes the problem)
  • But: clearing the cache solved the problem.

I added a method clearCache in my ScopeProvider:

    clearCache() {
        this.globalScopeCache.clear();
    }

Then calling clearCache before await services.shared.workspace.DocumentBuilder.build(docs, { validation: true });solves my problem.

Do you understand what happend?

Replies: 1 comment 8 replies

Comment options

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

@msujew
Comment options

@msujew
Comment options

@goto40
Comment options

Answer selected by goto40
@msujew
Comment options

@goto40
Comment options

@msujew
Comment options

@goto40
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
2 participants