99 getConfigurationsForWorkspace ,
1010 getConfigurationsFromSettings ,
1111} from '../../../../extension/debugger/configuration/launch.json/launchJsonReader' ;
12- import * as utils from '../../../../extension/debugger/configuration/launch.json/utils ' ;
12+ import * as vscodeapi from '../../../../extension/common/vscodeapi ' ;
1313
1414suite ( 'Debugging - launchJsonReader' , ( ) => {
1515 let sandbox : sinon . SinonSandbox ;
@@ -64,7 +64,7 @@ suite('Debugging - launchJsonReader', () => {
6464 ] ) ;
6565
6666 sandbox . stub ( fs , 'pathExists' ) . resolves ( false ) ;
67- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
67+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
6868
6969 const configurations = await getConfigurationsForWorkspace ( workspace . object ) ;
7070 assert . strictEqual ( configurations . length , 1 ) ;
@@ -89,7 +89,7 @@ suite('Debugging - launchJsonReader', () => {
8989 } ,
9090 ] ) ;
9191
92- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
92+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
9393
9494 const configurations = getConfigurationsFromSettings ( workspace . object ) ;
9595 assert . strictEqual ( configurations . length , 1 ) ;
@@ -104,7 +104,7 @@ suite('Debugging - launchJsonReader', () => {
104104 mockConfig . setup ( ( c ) => c . get ( 'configurations' ) ) . returns ( ( ) => [ ] ) ;
105105 mockConfig . setup ( ( c ) => c . configurations ) . returns ( ( ) => [ ] ) ;
106106
107- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
107+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
108108
109109 assert . throws (
110110 ( ) => getConfigurationsFromSettings ( workspace . object ) ,
0 commit comments