File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 8
8
- Prompt to cancel and replace the active test run if one is in flight ([ #1774 ] ( https://github.com/swiftlang/vscode-swift/pull/1774 ) )
9
9
- A walkthrough for first time extension users ([ #1560 ] ( https://github.com/swiftlang/vscode-swift/issues/1560 ) )
10
10
11
+ ### Fixed
12
+
13
+ - Don't start debugging XCTest cases if the swift-testing debug session was stopped ([ #1797 ] ( https://github.com/swiftlang/vscode-swift/pull/1797 ) )
14
+
11
15
## 2.11.20250806 - 2025-08-06
12
16
13
17
### Added
Original file line number Diff line number Diff line change @@ -700,6 +700,10 @@ export class TestRunner {
700
700
compositeToken . token
701
701
) ;
702
702
703
+ // If the user terminates a debugging session for swift-testing
704
+ // we want to prevent XCTest from starting.
705
+ const terminationListener = runner . onDebugSessionTerminated ( ( ) => compositeToken . cancel ( ) ) ;
706
+
703
707
// Register the test run with the manager
704
708
folderContext . registerTestRun ( runner . testRun , compositeToken ) ;
705
709
@@ -709,6 +713,8 @@ export class TestRunner {
709
713
// Run the tests
710
714
await runner . runHandler ( ) ;
711
715
716
+ terminationListener . dispose ( ) ;
717
+
712
718
// Run the post-run handler if provided
713
719
if ( postRunHandler ) {
714
720
await postRunHandler ( runner ) ;
You can’t perform that action at this time.
0 commit comments