@@ -21,7 +21,7 @@ import { RemoteTerminalChannelServer } from 'vs/gitpod/node/remoteTerminalChanne
2121import type { ServerExtensionHostConnection } from 'vs/gitpod/node/server-extension-host-connection' ;
2222import { infoServiceClient , statusServiceClient , supervisorAddr , supervisorDeadlines , supervisorMetadata } from 'vs/gitpod/node/supervisor-client' ;
2323import { 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' ;
2525import { ExtensionManagementCLIService } from 'vs/platform/extensionManagement/common/extensionManagementCLIService' ;
2626import { ExtensionType } from 'vs/platform/extensions/common/extensions' ;
2727import { IFileService } from 'vs/platform/files/common/files' ;
@@ -296,7 +296,7 @@ main({
296296 const lookup = new Set ( param . extensions . map ( ( { id } ) => id ) ) ;
297297 const uninstalled = new Set < string > ( [ ...lookup ] ) ;
298298 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 } ) ) ;
300300 const extensionsWithIdAndVersion = param . extensions . filter ( ( { version } ) => version !== undefined ) ;
301301 await Promise . all ( [
302302 extensionManagementService . getInstalled ( ExtensionType . User ) . then ( extensions => {
@@ -311,7 +311,7 @@ main({
311311 extensionGalleryService . getExtensions ( extensionIds , token ) . then ( result =>
312312 result . forEach ( extension => extensions . add ( extension . identifier . id . toLocaleLowerCase ( ) ) ) , ( ) => { } ) ,
313313 ...extensionsWithIdAndVersion . map ( ( { id, version } ) =>
314- extensionGalleryService . getCompatibleExtension ( { id } , version , token ) .
314+ extensionGalleryService . getCompatibleExtension ( { id } , CURRENT_TARGET_PLATFORM ) .
315315 then ( extension => extension && extensions . add ( extension . identifier . id . toLocaleLowerCase ( ) ) , ( ) => { } ) ) ,
316316 ...param . links . map ( async vsix => {
317317 try {
0 commit comments