Skip to content

How to manage multiple models correctly? #508

Answered by CGNonofr
Nuthin2do asked this question in Q&A
Discussion options

You must be logged in to vote

Storing the model reference looks like a good replacement idea

but you don't really need it, you can call createModelReference at any time, as soon as the file is registered in the virtual filesystem, and release it as soon as you don't need it directly

Note that as soon as there at least one reference to a model, the model is considered "active" (so for instance, the LSP server will receive a didOpen on it)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Nuthin2do
Comment options

@CGNonofr
Comment options

Answer selected by Nuthin2do
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