import { worker } from 'monaco-editor' ; import * as EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js' ; import { ICreateData } from '../_.contribution' ; import { SparkSQLWorker } from './sparkSQLWorker' ; self . onmessage = ( e ) => { EditorWorker . initialize ( ( ctx , createData ) => { const workerInstance = new SparkSQLWorker ( ctx , createData ) ; return workerInstance ; } ) ; } ;