Skip to content

Commit 6c1e30e

Browse files
authored
Fix issue w/launch config not using the temp integrated console setting (#1225)
1 parent 6c12428 commit 6c1e30e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/features/DebugSession.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider
133133
config.cwd = currentDocument.fileName;
134134
}
135135

136-
if (config.createTemporaryIntegratedConsole !== undefined) {
136+
// If the createTemporaryIntegratedConsole field is not specified in the launch config, set the field using
137+
// the value from the corresponding setting. Otherwise, the launch config value overrides the setting.
138+
if (config.createTemporaryIntegratedConsole === undefined) {
139+
config.createTemporaryIntegratedConsole = createNewIntegratedConsole;
140+
} else {
137141
createNewIntegratedConsole = config.createTemporaryIntegratedConsole;
138142
}
139143
}

0 commit comments

Comments
 (0)