You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Growing number of editor.worker-xxx.js on Model change #646
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.
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)
Activity
CGNonofr commentedon Jun 26, 2025
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)