src/vs/editor/editor.worker.ts/initialize
export function initialize(foreignModule: any) {
	if (initialized) {
		return;
	}
	initialized = true;

	const simpleWorker = new SimpleWorkerServer((msg) => {
		(<any>self).postMessage(msg);
	}, (host: EditorWorkerHost) => new EditorSimpleWorker(host, foreignModule));

	self.onmessage = (e: MessageEvent) => {
		simpleWorker.onmessage(e.data);
	};
}