@@ -18,6 +18,7 @@ import { Registry } from '../../../../platform/registry/common/platform.js';
18
18
import { BaseAssignmentService } from '../../../../platform/assignment/common/assignmentService.js' ;
19
19
import { workbenchConfigurationNodeBase } from '../../../common/configuration.js' ;
20
20
import { IConfigurationRegistry , Extensions as ConfigurationExtensions , ConfigurationScope } from '../../../../platform/configuration/common/configurationRegistry.js' ;
21
+ import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.js' ;
21
22
import { IEnvironmentService } from '../../../../platform/environment/common/environment.js' ;
22
23
23
24
export const IWorkbenchAssignmentService = createDecorator < IWorkbenchAssignmentService > ( 'WorkbenchAssignmentService' ) ;
@@ -86,7 +87,8 @@ export class WorkbenchAssignmentService extends BaseAssignmentService {
86
87
@IStorageService storageService : IStorageService ,
87
88
@IConfigurationService configurationService : IConfigurationService ,
88
89
@IProductService productService : IProductService ,
89
- @IEnvironmentService environmentService : IEnvironmentService
90
+ @IEnvironmentService environmentService : IEnvironmentService ,
91
+ @IWorkbenchEnvironmentService private readonly workbenchEnvironmentService : IWorkbenchEnvironmentService
90
92
) {
91
93
92
94
super (
@@ -100,7 +102,10 @@ export class WorkbenchAssignmentService extends BaseAssignmentService {
100
102
}
101
103
102
104
protected override get experimentsEnabled ( ) : boolean {
103
- return ! this . environmentService . disableExperiments && this . configurationService . getValue ( 'workbench.enableExperiments' ) === true ;
105
+ return ! this . environmentService . disableExperiments &&
106
+ ! this . environmentService . extensionTestsLocationURI &&
107
+ ! this . workbenchEnvironmentService . enableSmokeTestDriver &&
108
+ this . configurationService . getValue ( 'workbench.enableExperiments' ) === true ;
104
109
}
105
110
106
111
override async getTreatment < T extends string | number | boolean > ( name : string ) : Promise < T | undefined > {
0 commit comments