mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-21 15:41:57 +00:00
15 lines
631 B
TypeScript
15 lines
631 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
'use strict';
|
|
|
|
import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
|
|
import { YAMLWorker } from './yamlWorker';
|
|
|
|
self.onmessage = () => {
|
|
// ignore the first message
|
|
worker.initialize((ctx, createData) => {
|
|
return new YAMLWorker(ctx, createData);
|
|
});
|
|
};
|