Skip to content

Commit b858b34

Browse files
committed
debug: only save when starting a new top-level session
Fixes https://github.com/microsoft/vscode-node-debug2/issues/257
1 parent f154742 commit b858b34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ export class DebugService implements IDebugService {
270270
try {
271271
// make sure to save all files and that the configuration is up to date
272272
await this.extensionService.activateByEvent('onDebug');
273-
await this.editorService.saveAll();
273+
if (!options?.parentSession) {
274+
await this.editorService.saveAll();
275+
}
274276
await this.configurationService.reloadConfiguration(launch ? launch.workspace : undefined);
275277
await this.extensionService.whenInstalledExtensionsRegistered();
276278

0 commit comments

Comments
 (0)