Don't override saveBeforeStart default value

See microsoft/vscode-jupyter#6898
This commit is contained in:
Rob Lourens
2021-09-02 13:01:06 -07:00
parent 71830d5896
commit bad6e9309b
@@ -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');
}