Skip to content

Commit

Permalink
fix: sequentially debug separate workspace folders
Browse files Browse the repository at this point in the history
  • Loading branch information
evanandrewrose authored and zxch3n committed Jun 18, 2022
1 parent a63778f commit 2239de7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/runHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function runHandler(

const run = ctrl.createTestRun(request)

await Promise.all(vscode.workspace.workspaceFolders.map((folder) => {
for (const folder of vscode.workspace.workspaceFolders) {
const runner = new TestRunner(
folder.uri.fsPath,
getVitestCommand(folder.uri.fsPath),
Expand All @@ -55,10 +55,8 @@ export async function runHandler(

const testForThisWorkspace = gatherTestItemsFromWorkspace(items, folder.uri.fsPath)
if (testForThisWorkspace.length)
return runTest(ctrl, runner, run, testForThisWorkspace, 'run')

return Promise.resolve()
}))
await runTest(ctrl, runner, run, testForThisWorkspace, 'run')
}

run.end()
}
Expand Down

0 comments on commit 2239de7

Please sign in to comment.