Move workbench workers off EditorWorker (#225796)

* Add support for having channels in SimpleWorker

* Extract text model syncing code to a separate file

* Use a channel to do text model syncing for the language detection worker

* Simplify code

* Remove unused method

* Move OutputLinkComputer worker off editor worker

* Move TextMateTokenizationWorker off editor worker

* Simplify code

* Adopt channels for the host object

* More adopting channels for the host object

* More adopting channels for the host object

* More adopting channels for the host object

* Remove host object support from SimpleWorker

* Use the IEditorWorkerService, avoid starting a separate worker

* Bring the amd module id, the esm location and the worker label in a single type

* Improve typings

* SImplify worker creation pattern

* Enforce that all proxied methods start with `$` or `on`

* Adopt native proxy support

* Simplify code

* Simplify code

* Reintroduce a different standalone / workbench editor worker service
This commit is contained in:
Alexandru Dima
2024-08-20 14:00:18 +02:00
committed by GitHub
parent 5a8d73cebb
commit 4e0de3a8f4
44 changed files with 1282 additions and 1206 deletions

View File

@@ -5,9 +5,6 @@
</head>
<body>
<div id="container" style="width:800px;height:600px;border:1px solid #ccc"></div>
<script>
globalThis._VSCODE_FILE_ROOT = 'http://127.0.0.1:8563/dist/';
</script>
<script src="./core.bundle.js"></script>
</body>
</html>