debug: only save when starting a new top-level session

Fixes https://github.com/microsoft/vscode-node-debug2/issues/257
This commit is contained in:
Connor Peet 2020-07-30 16:07:17 -07:00
parent f1547427ea
commit b858b34eee
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -270,7 +270,9 @@ export class DebugService implements IDebugService {
try {
// make sure to save all files and that the configuration is up to date
await this.extensionService.activateByEvent('onDebug');
await this.editorService.saveAll();
if (!options?.parentSession) {
await this.editorService.saveAll();
}
await this.configurationService.reloadConfiguration(launch ? launch.workspace : undefined);
await this.extensionService.whenInstalledExtensionsRegistered();