debug: properly read the debug.saveBeforeStart respecting activeEditorMode
parent
4b5db9098c
commit
779f9876bc
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue