Skip to content

Commit

Permalink
fix: loop over workspace folders for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
evanandrewrose authored and zxch3n committed Jun 18, 2022
1 parent da560fc commit 690a880
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,16 @@ export async function debugHandler(
)
return

const tests = request.include ?? gatherTestItems(ctrl.items)
const run = ctrl.createTestRun(request)
await runTest(ctrl, undefined, run, tests, 'debug')

for (const folder of vscode.workspace.workspaceFolders) {
const items = request.include ?? ctrl.items

const testForThisWorkspace = gatherTestItemsFromWorkspace(items, folder.uri.fsPath)
if (testForThisWorkspace.length)
await runTest(ctrl, undefined, run, testForThisWorkspace, 'debug')
}

run.end()
}

Expand Down

0 comments on commit 690a880

Please sign in to comment.