@@ -37,7 +37,7 @@ import { NativeParsedArgs } from 'vs/platform/environment/common/argv';
37
37
import { IEnvironmentService , INativeEnvironmentService } from 'vs/platform/environment/common/environment' ;
38
38
import { OptionDescriptions , OPTIONS , parseArgs } from 'vs/platform/environment/node/argv' ;
39
39
import { 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' ;
41
41
import { IExtensionGalleryService , IExtensionManagementService } from 'vs/platform/extensionManagement/common/extensionManagement' ;
42
42
import { ExtensionManagementChannel } from 'vs/platform/extensionManagement/common/extensionManagementIpc' ;
43
43
import { ExtensionManagementService } from 'vs/platform/extensionManagement/node/extensionManagementService' ;
@@ -331,7 +331,10 @@ export async function main(options: IServerOptions): Promise<void> {
331
331
const connectionToken = generateUuid ( ) ;
332
332
333
333
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
+
335
338
const productService = { _serviceBrand : undefined , ...product } ;
336
339
const environmentService = new NativeEnvironmentService ( parsedArgs , productService ) ;
337
340
@@ -624,7 +627,7 @@ export async function main(options: IServerOptions): Promise<void> {
624
627
services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
625
628
services . set ( IDownloadService , new SyncDescriptor ( DownloadService ) ) ;
626
629
627
- services . set ( IExtensionGalleryService , new SyncDescriptor ( ExtensionGalleryService ) ) ;
630
+ services . set ( IExtensionGalleryService , new SyncDescriptor ( ExtensionGalleryServiceWithNoStorageService ) ) ;
628
631
services . set ( IExtensionManagementService , new SyncDescriptor ( ExtensionManagementService ) ) ;
629
632
630
633
services . set ( IRequestService , new SyncDescriptor ( RequestService ) ) ;
0 commit comments