Add DebugSessionOptions suppressSaveBeforeStart

See microsoft/vscode-jupyter#6898
This commit is contained in:
Rob Lourens
2021-09-02 11:05:13 -07:00
parent a6e25d3604
commit cdc8e53cf3
4 changed files with 9 additions and 2 deletions
@@ -232,7 +232,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
debugUI: options.debugUI,
compoundRoot: parentSession?.compoundRoot
};
return this.debugService.startDebugging(launch, nameOrConfig, debugOptions).then(success => {
return this.debugService.startDebugging(launch, nameOrConfig, debugOptions, !options.suppressSaveBeforeStart).then(success => {
return success;
}, err => {
return Promise.reject(new Error(err && err.message ? err.message : 'cannot start debugging'));