Temporarily disable that remote extensions can run in the local web worker extension host (#141322)

This commit is contained in:
Alex Dima 2022-02-22 15:08:54 +01:00
parent 6f1eadf42a
commit eeeab304b9
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -201,11 +201,8 @@ export class ExtensionService extends AbstractExtensionService implements IExten
// takes care of duplicates and picks a running location for each extension
this._runningLocation = this._runningLocationClassifier.determineRunningLocation(localExtensions, remoteExtensions);
// Remote extensions can run locally in the web worker, so mix everything up and split them again based on running location
// NOTE: An extension can appear twice in `allExtensions`, but it will be filtered out based on running location below:
const allExtensions = remoteExtensions.concat(localExtensions);
localExtensions = filterByRunningLocation(allExtensions, this._runningLocation, ExtensionRunningLocation.LocalWebWorker);
remoteExtensions = filterByRunningLocation(allExtensions, this._runningLocation, ExtensionRunningLocation.Remote);
localExtensions = filterByRunningLocation(localExtensions, this._runningLocation, ExtensionRunningLocation.LocalWebWorker);
remoteExtensions = filterByRunningLocation(remoteExtensions, this._runningLocation, ExtensionRunningLocation.Remote);
const result = this._registry.deltaExtensions(remoteExtensions.concat(localExtensions), []);
if (result.removedDueToLooping.length > 0) {