Skip to content

Commit 99e054f

Browse files
committed
display output channel when debugging
1 parent 3206f94 commit 99e054f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/client/unittests/unittest/runner.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export function runTest(testManager: BaseTestManager, rootDirectory: string, tes
9898
if (debug === true) {
9999
const def = createDeferred<any>();
100100
const launchDef = createDeferred<any>();
101+
let outputChannelShown = false;
101102

102103
// start the debug adapter only once we have started the debug process
103104
execPythonFile(settings.pythonPath, [testLauncherFile].concat(testArgs), rootDirectory, true, (data: string) => {
@@ -106,6 +107,10 @@ export function runTest(testManager: BaseTestManager, rootDirectory: string, tes
106107
launchDef.resolve();
107108
}
108109
else {
110+
if (!outputChannelShown) {
111+
outputChannelShown = true;
112+
outChannel.show();
113+
}
109114
outChannel.append(data);
110115
}
111116
}, token).catch(reason => {

0 commit comments

Comments
 (0)