@@ -19,7 +19,6 @@ import { ModelServiceImpl } from 'vs/editor/common/services/modelServiceImpl';
1919import { ITextModelService } from 'vs/editor/common/services/resolverService' ;
2020import { ITextResourcePropertiesService } from 'vs/editor/common/services/resourceConfiguration' ;
2121import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
22- import { ConfigurationService } from 'vs/platform/configuration/node/configurationService' ;
2322import { ContextKeyExpr , IContextKeyService } from 'vs/platform/contextkey/common/contextkey' ;
2423import { IEnvironmentService } from 'vs/platform/environment/common/environment' ;
2524import { IFileService } from 'vs/platform/files/common/files' ;
@@ -49,6 +48,7 @@ import { FileUserDataProvider } from 'vs/workbench/services/userData/common/file
4948import { parseArgs , OPTIONS } from 'vs/platform/environment/node/argv' ;
5049import { WorkbenchEnvironmentService } from 'vs/workbench/services/environment/node/environmentService' ;
5150import { IWindowConfiguration } from 'vs/platform/windows/common/windows' ;
51+ import { TestConfigurationService } from 'vs/platform/configuration/test/common/testConfigurationService' ;
5252
5353class TestEnvironmentService extends WorkbenchEnvironmentService {
5454
@@ -81,11 +81,12 @@ suite('KeybindingsEditing', () => {
8181 instantiationService = new TestInstantiationService ( ) ;
8282
8383 const environmentService = new TestEnvironmentService ( URI . file ( testDir ) ) ;
84+
85+ const configService = new TestConfigurationService ( ) ;
86+ configService . setUserConfiguration ( 'files' , { 'eol' : '\n' } ) ;
87+
8488 instantiationService . stub ( IEnvironmentService , environmentService ) ;
85- instantiationService . stub ( IConfigurationService , ConfigurationService ) ;
86- instantiationService . stub ( IConfigurationService , 'getValue' , { 'eol' : '\n' } ) ;
87- instantiationService . stub ( IConfigurationService , 'onDidUpdateConfiguration' , ( ) => { } ) ;
88- instantiationService . stub ( IConfigurationService , 'onDidChangeConfiguration' , ( ) => { } ) ;
89+ instantiationService . stub ( IConfigurationService , configService ) ;
8990 instantiationService . stub ( IWorkspaceContextService , new TestContextService ( ) ) ;
9091 const lifecycleService = new TestLifecycleService ( ) ;
9192 instantiationService . stub ( ILifecycleService , lifecycleService ) ;
0 commit comments