mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-19 22:41:39 +00:00
- ESLint config `remcohaszing/typechecking` is extended. - Various previously disabled ESLint rules have now been enabled. - Various `any` types have been fixed. - Removed useless type check of diagnostic code. - The diagnostics adapter listener has been turned into an actual map.
7 lines
262 B
TypeScript
7 lines
262 B
TypeScript
import { initialize } from 'monaco-editor/esm/vs/editor/editor.worker';
|
|
|
|
import { createYAMLWorker, ICreateData } from './yamlWorker';
|
|
|
|
self.onmessage = () => {
|
|
initialize((ctx, createData: ICreateData) => Object.create(createYAMLWorker(ctx, createData)));
|
|
};
|