@@ -1161,21 +1161,21 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
11611161
11621162 test ( 'application settings are not read from workspace' , ( ) => {
11631163 fs . writeFileSync ( globalSettingsFile , '{ "configurationService.workspace.applicationSetting": "userValue" }' ) ;
1164- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.applicationSetting' : 'workspaceValue' } } , true )
1164+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.applicationSetting' : 'workspaceValue' } } ] , true )
11651165 . then ( ( ) => testObject . reloadConfiguration ( ) )
11661166 . then ( ( ) => assert . equal ( testObject . getValue ( 'configurationService.workspace.applicationSetting' ) , 'userValue' ) ) ;
11671167 } ) ;
11681168
11691169 test ( 'machine settings are not read from workspace' , ( ) => {
11701170 fs . writeFileSync ( globalSettingsFile , '{ "configurationService.workspace.machineSetting": "userValue" }' ) ;
1171- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.machineSetting' : 'workspaceValue' } } , true )
1171+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.machineSetting' : 'workspaceValue' } } ] , true )
11721172 . then ( ( ) => testObject . reloadConfiguration ( ) )
11731173 . then ( ( ) => assert . equal ( testObject . getValue ( 'configurationService.workspace.machineSetting' ) , 'userValue' ) ) ;
11741174 } ) ;
11751175
11761176 test ( 'workspace settings override user settings after defaults are registered ' , ( ) => {
11771177 fs . writeFileSync ( globalSettingsFile , '{ "configurationService.workspace.newSetting": "userValue" }' ) ;
1178- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.newSetting' : 'workspaceValue' } } , true )
1178+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.newSetting' : 'workspaceValue' } } ] , true )
11791179 . then ( ( ) => testObject . reloadConfiguration ( ) )
11801180 . then ( ( ) => {
11811181 configurationRegistry . registerConfiguration ( {
@@ -1194,7 +1194,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
11941194
11951195 test ( 'workspace settings override user settings after defaults are registered for machine overridable settings ' , ( ) => {
11961196 fs . writeFileSync ( globalSettingsFile , '{ "configurationService.workspace.newMachineOverridableSetting": "userValue" }' ) ;
1197- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.newMachineOverridableSetting' : 'workspaceValue' } } , true )
1197+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.newMachineOverridableSetting' : 'workspaceValue' } } ] , true )
11981198 . then ( ( ) => testObject . reloadConfiguration ( ) )
11991199 . then ( ( ) => {
12001200 configurationRegistry . registerConfiguration ( {
@@ -1268,7 +1268,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
12681268
12691269 test ( 'resource setting in folder is read after it is registered later' , ( ) => {
12701270 fs . writeFileSync ( workspaceContextService . getWorkspace ( ) . folders [ 0 ] . toResource ( '.vscode/settings.json' ) . fsPath , '{ "configurationService.workspace.testNewResourceSetting2": "workspaceFolderValue" }' ) ;
1271- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.testNewResourceSetting2' : 'workspaceValue' } } , true )
1271+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.testNewResourceSetting2' : 'workspaceValue' } } ] , true )
12721272 . then ( ( ) => testObject . reloadConfiguration ( ) )
12731273 . then ( ( ) => {
12741274 configurationRegistry . registerConfiguration ( {
@@ -1288,7 +1288,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
12881288
12891289 test ( 'machine overridable setting in folder is read after it is registered later' , ( ) => {
12901290 fs . writeFileSync ( workspaceContextService . getWorkspace ( ) . folders [ 0 ] . toResource ( '.vscode/settings.json' ) . fsPath , '{ "configurationService.workspace.testNewMachineOverridableSetting2": "workspaceFolderValue" }' ) ;
1291- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.testNewMachineOverridableSetting2' : 'workspaceValue' } } , true )
1291+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.testNewMachineOverridableSetting2' : 'workspaceValue' } } ] , true )
12921292 . then ( ( ) => testObject . reloadConfiguration ( ) )
12931293 . then ( ( ) => {
12941294 configurationRegistry . registerConfiguration ( {
@@ -1331,7 +1331,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
13311331 assert . equal ( actual . workspaceFolder , undefined ) ;
13321332 assert . equal ( actual . value , 'userValue' ) ;
13331333
1334- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'settings' , value : { 'configurationService.workspace.testResourceSetting' : 'workspaceValue' } } , true )
1334+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'settings' , value : { 'configurationService.workspace.testResourceSetting' : 'workspaceValue' } } ] , true )
13351335 . then ( ( ) => testObject . reloadConfiguration ( ) )
13361336 . then ( ( ) => {
13371337 actual = testObject . inspect ( 'configurationService.workspace.testResourceSetting' ) ;
@@ -1373,7 +1373,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
13731373 }
13741374 ]
13751375 } ;
1376- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'launch' , value : expectedLaunchConfiguration } , true )
1376+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'launch' , value : expectedLaunchConfiguration } ] , true )
13771377 . then ( ( ) => testObject . reloadConfiguration ( ) )
13781378 . then ( ( ) => {
13791379 const actual = testObject . getValue ( 'launch' ) ;
@@ -1398,7 +1398,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
13981398 }
13991399 ]
14001400 } ;
1401- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'launch' , value : expectedLaunchConfiguration } , true )
1401+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'launch' , value : expectedLaunchConfiguration } ] , true )
14021402 . then ( ( ) => testObject . reloadConfiguration ( ) )
14031403 . then ( ( ) => {
14041404 const actual = testObject . inspect ( 'launch' ) . workspace ;
@@ -1496,7 +1496,7 @@ suite('WorkspaceConfigurationService-Multiroot', () => {
14961496 } ) ;
14971497
14981498 test ( 'task configurations are not read from workspace' , ( ) => {
1499- return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , { key : 'tasks' , value : { 'version' : '1.0' } } , true )
1499+ return jsonEditingServce . write ( workspaceContextService . getWorkspace ( ) . configuration ! , [ { key : 'tasks' , value : { 'version' : '1.0' } } ] , true )
15001500 . then ( ( ) => testObject . reloadConfiguration ( ) )
15011501 . then ( ( ) => {
15021502 const actual = testObject . inspect ( 'tasks.version' ) ;
0 commit comments