add comment

This commit is contained in:
João Moreno 2021-11-25 15:14:36 +01:00
parent 2ff9b87972
commit 3084b7d7ac
No known key found for this signature in database
GPG key ID: 896B853774D1A575

View file

@ -295,6 +295,9 @@ export class WebWorkerExtensionHost extends Disposable implements IExtensionHost
}
);
// TODO@joao: let's use this mechanism to invert the regular MessagePort sending.
// it is currently being sent from the extension host to the outside. we could
// send it in this collection instead
const messagePorts = this._environmentService.options?.messagePorts ?? new Map();
worker.postMessage(messagePorts as any, [...messagePorts.values()]);