Skip to content

Commit 61dcbfc

Browse files
committed
debug: if noDebug is not passed take behavrior of parent session
microsoft#99743
1 parent d6ee543 commit 61dcbfc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/vs/workbench/contrib/debug/browser/debugService.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,11 @@ export class DebugService implements IDebugService {
373373
config = Object.create(null);
374374
}
375375
if (options && options.noDebug) {
376-
options.noDebug = true;
376+
config!.noDebug = true;
377+
} else if (options && typeof options.noDebug === 'undefined' && options.parentSession && options.parentSession.configuration.noDebug) {
378+
config!.noDebug = true;
379+
} else {
380+
delete config!.noDebug;
377381
}
378382
const unresolvedConfig = deepClone(config);
379383

0 commit comments

Comments
 (0)