[Feature Request] Allow using SharedWorker instead of Worker (for TypeScript) #4754
Open
2 tasks done
Labels
feature-request
Request for new features or functionality
Context
Description
I'm developing an application where users typically have many tabs open, most of which contain one of more instances of Monaco editor with TypeScript content.
As each tab runs its own Worker for the TS language service, this means that each tab uses approx. 150MB of memory just for the Worker.
As this can place a heavy burden on users' machines and slow down the browser quite a bit, I'm wondering if there is currently a way to work around this. In my use case, all tabs are running on the same origin and using the same extra libs, therefore sharing one TS language service across them should conceptually be possible.
Some potential approaches that have crossed my mind, but may not be feasible:
So in essence, my main questions are:
I'm greatful for any hints and opinions whether/how the points above could be accomplished, or any ideas that would work better :-)
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
The text was updated successfully, but these errors were encountered: