mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-16 16:31:05 +01:00
Don't override saveBeforeStart default value
See microsoft/vscode-jupyter#6898
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user