Skip to content

Commit 2608547

Browse files
committed
set the console type based on debugger type
1 parent bb77661 commit 2608547

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Extension/test/scenarios/RunWithoutDebugging/tests/runWithoutDebugging.integration.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ function createTracker(debugType: string, sessionName: string, timeoutMs: number
183183
}
184184

185185
suite('Run Without Debugging Integration Test', function (): void {
186-
187186
suiteSetup(async function (): Promise<void> {
188187
const extension: vscode.Extension<any> = vscode.extensions.getExtension('ms-vscode.cpptools') || assert.fail('Extension not found');
189188
if (!extension.isActive) {
@@ -224,7 +223,8 @@ suite('Run Without Debugging Integration Test', function (): void {
224223
program: executablePath,
225224
args: [],
226225
cwd: workspacePath,
227-
console: 'internalConsole'
226+
externalConsole: debugType === 'cppdbg' ? false : undefined,
227+
console: debugType === 'cppvsdbg' ? 'internalConsole' : undefined
228228
},
229229
{ noDebug: true });
230230

@@ -278,7 +278,8 @@ suite('Run Without Debugging Integration Test', function (): void {
278278
program: executablePath,
279279
args: [],
280280
cwd: workspacePath,
281-
console: 'internalConsole'
281+
externalConsole: debugType === 'cppdbg' ? false : undefined,
282+
console: debugType === 'cppvsdbg' ? 'internalConsole' : undefined
282283
},
283284
{ noDebug: false });
284285

0 commit comments

Comments
 (0)