-
Current behavior: With each model change a new editor.worker-xxx.js is being created. For this i created a small repo. In this repo, start the application, open the DevTools, click on the buttons to change the model and you'll see that with each model change a new editor.worker-xxx.js appears. I tested it with the 17.1.2 and with the latest version. Same behavior But if i install the 15.0.3 Version than the number of the editor.worker-xxx.js doesnt grow and it stays at the count of just one. Expected behavior: I would expect that the number of editor.worker-xxx.js doesnt grow as it is/was with the 15.0.3 version. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The editor worker is disposed when there is no open model left. A new worker is not added on top of the previous one, it's just restarted, so not a big deal You can still change that by ensuring a model is always there, for instance by destroying the previous model only after you set the new one on the editor (which is probably a good practice anyway) |
Beta Was this translation helpful? Give feedback.
The editor worker is disposed when there is no open model left. A new worker is not added on top of the previous one, it's just restarted, so not a big deal
You can still change that by ensuring a model is always there, for instance by destroying the previous model only after you set the new one on the editor (which is probably a good practice anyway)