We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f5810 commit 88b9a17Copy full SHA for 88b9a17
1 file changed
src/client/unittests/main.ts
@@ -296,7 +296,8 @@ function runTestsImpl(arg?: vscode.Uri | TestsToRun | boolean | FlattenedTestFun
296
297
testResultDisplay = testResultDisplay ? testResultDisplay : new TestResultDisplay(outChannel, onDidChange);
298
299
- let runPromise = testManager.runTest(runInfo, debug).catch(reason => {
+ let ret = typeof runInfo === 'boolean' ? testManager.runTest(runInfo, debug) : testManager.runTest(runInfo, debug);
300
+ let runPromise = ret.catch(reason => {
301
if (reason !== CANCELLATION_REASON) {
302
outChannel.appendLine('Error: ' + reason);
303
}
0 commit comments