debug: properly read the debug.saveBeforeStart respecting activeEditorMode

pull/124353/head
isidor 2021-05-21 10:44:28 +02:00
parent 4b5db9098c
commit 779f9876bc
No known key found for this signature in database
GPG Key ID: F9280366A8370105
1 changed files with 1 additions and 2 deletions

View File

@ -285,8 +285,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) {
const saveBeforeStartConfig: string = this.configurationService.getValue('debug.saveBeforeStart');
const saveBeforeStartConfig: string = this.configurationService.getValue('debug.saveBeforeStart', { overrideIdentifier: this.editorService.activeTextEditorMode });
if (saveBeforeStartConfig !== 'none') {
await this.editorService.saveAll();
if (saveBeforeStartConfig === 'allEditorsInActiveGroup') {