Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeep Somavarapu <sasomava@microsoft.com>2022-01-23 01:33:34 +0300
committerSandeep Somavarapu <sasomava@microsoft.com>2022-01-23 01:33:55 +0300
commit9b75bd1f813e683bf46897d85387089ec083fb24 (patch)
treee36f42d287ad903882dfff954bd09a7be2f5ee59 /src/vs/workbench/contrib/extensions/electron-sandbox
parentface76358f8418cc4612aedf84b88ca3f7d8afdf (diff)
#139015 more refactorings
- use getExtensions for querying by id or name - introduce getExtensions in IExtensionsWorkbenchService
Diffstat (limited to 'src/vs/workbench/contrib/extensions/electron-sandbox')
-rw-r--r--src/vs/workbench/contrib/extensions/electron-sandbox/remoteExtensionsInit.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/remoteExtensionsInit.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/remoteExtensionsInit.ts
index 8c65ebcc1bc..aba98e02655 100644
--- a/src/vs/workbench/contrib/extensions/electron-sandbox/remoteExtensionsInit.ts
+++ b/src/vs/workbench/contrib/extensions/electron-sandbox/remoteExtensionsInit.ts
@@ -120,7 +120,8 @@ class RemoteExtensionsInitializer extends AbstractExtensionsInitializer {
this.logService.trace('No new remote extensions to install.');
return;
}
- const extensionsToInstall = await this.extensionGalleryService.getExtensions(newExtensions, CancellationToken.None);
+ const targetPlatform = await this.extensionManagementService.getTargetPlatform();
+ const extensionsToInstall = await this.extensionGalleryService.getExtensions(newExtensions, { targetPlatform, compatible: true }, CancellationToken.None);
if (extensionsToInstall.length) {
await Promise.allSettled(extensionsToInstall.map(async e => {
const manifest = await this.extensionGalleryService.getManifest(e, CancellationToken.None);