From bad6e9309bd4a0dbaefe8dc03596347bf21b5e14 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Thu, 2 Sep 2021 11:36:28 -0700 Subject: [PATCH] Don't override saveBeforeStart default value See microsoft/vscode-jupyter#6898 --- src/vs/workbench/api/browser/mainThreadDebugService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/api/browser/mainThreadDebugService.ts b/src/vs/workbench/api/browser/mainThreadDebugService.ts index ca2dcb4998c..f77fb818e44 100644 --- a/src/vs/workbench/api/browser/mainThreadDebugService.ts +++ b/src/vs/workbench/api/browser/mainThreadDebugService.ts @@ -233,7 +233,8 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb compoundRoot: parentSession?.compoundRoot }; try { - return this.debugService.startDebugging(launch, nameOrConfig, debugOptions, !options.suppressSaveBeforeStart); + const saveBeforeStart = typeof options.suppressSaveBeforeStart === 'boolean' ? !options.suppressSaveBeforeStart : undefined; + return this.debugService.startDebugging(launch, nameOrConfig, debugOptions, saveBeforeStart); } catch (err) { throw new Error(err && err.message ? err.message : 'cannot start debugging'); }