mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +01:00
14 lines
617 B
TypeScript
14 lines
617 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as worker from 'monaco-editor-core/esm/vs/editor/editor.worker';
|
|
import { HTMLWorker } from './htmlWorker';
|
|
|
|
self.onmessage = () => {
|
|
// ignore the first message
|
|
worker.initialize((ctx, createData) => {
|
|
return new HTMLWorker(ctx, createData);
|
|
});
|
|
};
|