mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Fixes #2705: Call create also from the ESM worker
This commit is contained in:
parent
ad4a942460
commit
888883e33e
1 changed files with 2 additions and 2 deletions
|
|
@ -4,12 +4,12 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as edworker from 'monaco-editor-core/esm/vs/editor/editor.worker';
|
||||
import { TypeScriptWorker, ICreateData } from './tsWorker';
|
||||
import { ICreateData, create } from './tsWorker';
|
||||
import { worker } from '../fillers/monaco-editor-core';
|
||||
|
||||
self.onmessage = () => {
|
||||
// ignore the first message
|
||||
edworker.initialize((ctx: worker.IWorkerContext, createData: ICreateData) => {
|
||||
return new TypeScriptWorker(ctx, createData);
|
||||
return create(ctx, createData);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue