From d0475711090b596bbf44e9afc90b074b9eb1082f Mon Sep 17 00:00:00 2001 From: isidor Date: Mon, 7 Dec 2020 15:33:52 +0100 Subject: [PATCH] Prompt to save untitled file before run/debug fixes #111850 --- src/vs/workbench/contrib/debug/browser/debugService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/debug/browser/debugService.ts b/src/vs/workbench/contrib/debug/browser/debugService.ts index e05a471f57b..586c15415e0 100644 --- a/src/vs/workbench/contrib/debug/browser/debugService.ts +++ b/src/vs/workbench/contrib/debug/browser/debugService.ts @@ -289,7 +289,7 @@ export class DebugService implements IDebugService { // make sure to save all files and that the configuration is up to date await this.extensionService.activateByEvent('onDebug'); if (!options?.parentSession) { - await this.editorService.saveAll(); + await this.editorService.saveAll({ includeUntitled: true }); } await this.configurationService.reloadConfiguration(launch ? launch.workspace : undefined); await this.extensionService.whenInstalledExtensionsRegistered(); -- GitLab