@@ -37,7 +37,7 @@ import { NativeParsedArgs } from 'vs/platform/environment/common/argv';
3737import { IEnvironmentService , INativeEnvironmentService } from 'vs/platform/environment/common/environment' ;
3838import { OptionDescriptions , OPTIONS , parseArgs } from 'vs/platform/environment/node/argv' ;
3939import { NativeEnvironmentService } from 'vs/platform/environment/node/environmentService' ;
40- import { ExtensionGalleryService } from 'vs/platform/extensionManagement/common/extensionGalleryService' ;
40+ import { ExtensionGalleryServiceWithNoStorageService } from 'vs/platform/extensionManagement/common/extensionGalleryService' ;
4141import { IExtensionGalleryService , IExtensionManagementService } from 'vs/platform/extensionManagement/common/extensionManagement' ;
4242import { ExtensionManagementChannel } from 'vs/platform/extensionManagement/common/extensionManagementIpc' ;
4343import { ExtensionManagementService } from 'vs/platform/extensionManagement/node/extensionManagementService' ;
@@ -331,7 +331,10 @@ export async function main(options: IServerOptions): Promise<void> {
331331 const connectionToken = generateUuid ( ) ;
332332
333333 const parsedArgs = parseArgs ( process . argv , SERVER_OPTIONS ) ;
334- parsedArgs [ 'user-data-dir' ] = URI . file ( path . join ( os . homedir ( ) , product . dataFolderName ) ) . fsPath ;
334+
335+ // VSCODE_AGENT_FOLDER used by smoke and integration tests.
336+ parsedArgs [ 'user-data-dir' ] = process . env . VSCODE_AGENT_FOLDER || path . join ( os . homedir ( ) , product . dataFolderName ) ;
337+
335338 const productService = { _serviceBrand : undefined , ...product } ;
336339 const environmentService = new NativeEnvironmentService ( parsedArgs , productService ) ;
337340
@@ -624,7 +627,7 @@ export async function main(options: IServerOptions): Promise<void> {
624627 services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
625628 services . set ( IDownloadService , new SyncDescriptor ( DownloadService ) ) ;
626629
627- services . set ( IExtensionGalleryService , new SyncDescriptor ( ExtensionGalleryService ) ) ;
630+ services . set ( IExtensionGalleryService , new SyncDescriptor ( ExtensionGalleryServiceWithNoStorageService ) ) ;
628631 services . set ( IExtensionManagementService , new SyncDescriptor ( ExtensionManagementService ) ) ;
629632
630633 services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
0 commit comments