9
9
getConfigurationsForWorkspace ,
10
10
getConfigurationsFromSettings ,
11
11
} 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 ' ;
13
13
14
14
suite ( 'Debugging - launchJsonReader' , ( ) => {
15
15
let sandbox : sinon . SinonSandbox ;
@@ -64,7 +64,7 @@ suite('Debugging - launchJsonReader', () => {
64
64
] ) ;
65
65
66
66
sandbox . stub ( fs , 'pathExists' ) . resolves ( false ) ;
67
- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
67
+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
68
68
69
69
const configurations = await getConfigurationsForWorkspace ( workspace . object ) ;
70
70
assert . strictEqual ( configurations . length , 1 ) ;
@@ -89,7 +89,7 @@ suite('Debugging - launchJsonReader', () => {
89
89
} ,
90
90
] ) ;
91
91
92
- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
92
+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
93
93
94
94
const configurations = getConfigurationsFromSettings ( workspace . object ) ;
95
95
assert . strictEqual ( configurations . length , 1 ) ;
@@ -104,7 +104,7 @@ suite('Debugging - launchJsonReader', () => {
104
104
mockConfig . setup ( ( c ) => c . get ( 'configurations' ) ) . returns ( ( ) => [ ] ) ;
105
105
mockConfig . setup ( ( c ) => c . configurations ) . returns ( ( ) => [ ] ) ;
106
106
107
- sandbox . stub ( utils , 'getConfiguration' ) . returns ( mockConfig . object ) ;
107
+ sandbox . stub ( vscodeapi , 'getConfiguration' ) . returns ( mockConfig . object ) ;
108
108
109
109
assert . throws (
110
110
( ) => getConfigurationsFromSettings ( workspace . object ) ,
0 commit comments