@@ -21,7 +21,7 @@ import { RemoteTerminalChannelServer } from 'vs/gitpod/node/remoteTerminalChanne
21
21
import type { ServerExtensionHostConnection } from 'vs/gitpod/node/server-extension-host-connection' ;
22
22
import { infoServiceClient , statusServiceClient , supervisorAddr , supervisorDeadlines , supervisorMetadata } from 'vs/gitpod/node/supervisor-client' ;
23
23
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
24
- import { IExtensionGalleryService , IExtensionManagementCLIService , IExtensionManagementService } from 'vs/platform/extensionManagement/common/extensionManagement' ;
24
+ import { IExtensionGalleryService , IExtensionManagementCLIService , IExtensionManagementService , CURRENT_TARGET_PLATFORM } from 'vs/platform/extensionManagement/common/extensionManagement' ;
25
25
import { ExtensionManagementCLIService } from 'vs/platform/extensionManagement/common/extensionManagementCLIService' ;
26
26
import { ExtensionType } from 'vs/platform/extensions/common/extensions' ;
27
27
import { IFileService } from 'vs/platform/files/common/files' ;
@@ -296,7 +296,7 @@ main({
296
296
const lookup = new Set ( param . extensions . map ( ( { id } ) => id ) ) ;
297
297
const uninstalled = new Set < string > ( [ ...lookup ] ) ;
298
298
lookup . add ( 'github.vscode-pull-request-github' ) ;
299
- const extensionIds = param . extensions . filter ( ( { version } ) => version === undefined ) . map ( ( { id } ) => id ) ;
299
+ const extensionIds = param . extensions . filter ( ( { version } ) => version === undefined ) . map ( ( { id } ) => ( { id } ) ) ;
300
300
const extensionsWithIdAndVersion = param . extensions . filter ( ( { version } ) => version !== undefined ) ;
301
301
await Promise . all ( [
302
302
extensionManagementService . getInstalled ( ExtensionType . User ) . then ( extensions => {
@@ -311,7 +311,7 @@ main({
311
311
extensionGalleryService . getExtensions ( extensionIds , token ) . then ( result =>
312
312
result . forEach ( extension => extensions . add ( extension . identifier . id . toLocaleLowerCase ( ) ) ) , ( ) => { } ) ,
313
313
...extensionsWithIdAndVersion . map ( ( { id, version } ) =>
314
- extensionGalleryService . getCompatibleExtension ( { id } , version , token ) .
314
+ extensionGalleryService . getCompatibleExtension ( { id } , CURRENT_TARGET_PLATFORM ) .
315
315
then ( extension => extension && extensions . add ( extension . identifier . id . toLocaleLowerCase ( ) ) , ( ) => { } ) ) ,
316
316
...param . links . map ( async vsix => {
317
317
try {
0 commit comments