src/vs/workbench/services/extensions/worker/extensionHostWorker.ts/create
(function create(): void {
	const res = new ExtensionWorker();
	performance.mark(`code/extHost/willConnectToRenderer`);
	connectToRenderer(res.protocol).then(data => {
		performance.mark(`code/extHost/didWaitForInitData`);
		const extHostMain = new ExtensionHostMain(
			data.protocol,
			data.initData,
			hostUtil,
			null,
		);

		onTerminate = (reason: string) => extHostMain.terminate(reason);
	});
})();