From 1572764b687a289bb4865299898355838a042163 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Sat, 10 Mar 2018 18:00:14 -0700 Subject: [PATCH] Fix issue w/launch config not using the temp integrated console setting --- src/features/DebugSession.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/features/DebugSession.ts b/src/features/DebugSession.ts index b9d6062a42..5b5cd1e1eb 100644 --- a/src/features/DebugSession.ts +++ b/src/features/DebugSession.ts @@ -133,7 +133,11 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider config.cwd = currentDocument.fileName; } - if (config.createTemporaryIntegratedConsole !== undefined) { + // If the createTemporaryIntegratedConsole field is not specified in the launch config, set the field using + // the value from the corresponding setting. Otherwise, the launch config value overrides the setting. + if (config.createTemporaryIntegratedConsole === undefined) { + config.createTemporaryIntegratedConsole = createNewIntegratedConsole; + } else { createNewIntegratedConsole = config.createTemporaryIntegratedConsole; } }