src/vs/platform/driver/electron-main/driver.ts/serve
export async function serve(
	windowServer: IPCServer,
	handle: string,
	environmentMainService: IEnvironmentMainService,
	instantiationService: IInstantiationService
): Promise<IDisposable> {
	const verbose = environmentMainService.driverVerbose;
	const driver = instantiationService.createInstance(Driver, windowServer, { verbose });

	const windowDriverRegistryChannel = new WindowDriverRegistryChannel(driver);
	windowServer.registerChannel('windowDriverRegistry', windowDriverRegistryChannel);

	const server = await serveNet(handle);
	const channel = new DriverChannel(driver);
	server.registerChannel('driver', channel);

	return combinedDisposable(server, windowServer);
}