Skip to content

Commit 031ce72

Browse files
committed
workaround for debug test at cursor
1 parent 2b0c76a commit 031ce72

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
## [Unreleased]
88

9+
## [4.13.2]
10+
11+
### Added
12+
13+
- workaround for 'debug test at cursor'. [related](https://github.com/matepek/vscode-catch2-test-adapter/issues/464)
14+
915
## [4.13.1] - 2025-04-05
1016

1117
### Added

src/main.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,11 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
299299
const testsToRun = [...executables.values()][0];
300300

301301
if (testsToRun.direct.length != 1) {
302-
vscode.window.showWarningMessage('You should only run 1 test case, no group.');
303-
return;
302+
// workaround for https://github.com/matepek/vscode-catch2-test-adapter/issues/464
303+
if (new Set(testsToRun.direct.map(x => x.id)).size != 1) {
304+
vscode.window.showWarningMessage('You should only run 1 test case, no group.');
305+
return;
306+
}
304307
}
305308
const test = testsToRun.direct[0];
306309
runQueue.push(

0 commit comments

Comments
 (0)