@@ -117,7 +117,7 @@ suite('Debug - Attach to Child Process', () => {
117
117
verify ( debugService . startDebugging ( undefined , anything ( ) , anything ( ) ) ) . once ( ) ;
118
118
sinon . assert . notCalled ( showErrorMessageStub ) ;
119
119
} ) ;
120
- test ( 'Validate debug config is passed as is ' , async ( ) => {
120
+ test ( 'Validate debug config is passed with the correct params ' , async ( ) => {
121
121
const data : LaunchRequestArguments | AttachRequestArguments = {
122
122
request : 'attach' ,
123
123
type : 'python' ,
@@ -140,7 +140,7 @@ suite('Debug - Attach to Child Process', () => {
140
140
verify ( debugService . startDebugging ( undefined , anything ( ) , anything ( ) ) ) . once ( ) ;
141
141
const [ , secondArg , thirdArg ] = capture ( debugService . startDebugging ) . last ( ) ;
142
142
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
143
- expect ( thirdArg ) . to . deep . equal ( session ) ;
143
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
144
144
sinon . assert . notCalled ( showErrorMessageStub ) ;
145
145
} ) ;
146
146
test ( 'Pass data as is if data is attach debug configuration' , async ( ) => {
@@ -161,7 +161,7 @@ suite('Debug - Attach to Child Process', () => {
161
161
verify ( debugService . startDebugging ( undefined , anything ( ) , anything ( ) ) ) . once ( ) ;
162
162
const [ , secondArg , thirdArg ] = capture ( debugService . startDebugging ) . last ( ) ;
163
163
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
164
- expect ( thirdArg ) . to . deep . equal ( session ) ;
164
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
165
165
sinon . assert . notCalled ( showErrorMessageStub ) ;
166
166
} ) ;
167
167
test ( 'Validate debug config when parent/root parent was attached' , async ( ) => {
@@ -189,7 +189,7 @@ suite('Debug - Attach to Child Process', () => {
189
189
verify ( debugService . startDebugging ( undefined , anything ( ) , anything ( ) ) ) . once ( ) ;
190
190
const [ , secondArg , thirdArg ] = capture ( debugService . startDebugging ) . last ( ) ;
191
191
expect ( secondArg ) . to . deep . equal ( debugConfig ) ;
192
- expect ( thirdArg ) . to . deep . equal ( session ) ;
192
+ expect ( thirdArg ) . to . deep . equal ( { parentSession : session , lifecycleManagedByParent : true } ) ;
193
193
sinon . assert . notCalled ( showErrorMessageStub ) ;
194
194
} ) ;
195
195
} ) ;
0 commit comments