diff --git a/src/vs/workbench/contrib/debug/browser/debugService.ts b/src/vs/workbench/contrib/debug/browser/debugService.ts index 805156e1210..07116a63fa3 100644 --- a/src/vs/workbench/contrib/debug/browser/debugService.ts +++ b/src/vs/workbench/contrib/debug/browser/debugService.ts @@ -710,10 +710,7 @@ export class DebugService implements IDebugService { if (this.configurationService.getValue('debug').closeReadonlyTabsOnEnd) { const editorsToClose = this.editorService.getEditors(EditorsOrder.SEQUENTIAL).filter(({ editor }) => { - if (editor.resource?.scheme === DEBUG_SCHEME) { - return editor.isReadonly() && session.getId() === Source.getEncodedDebugData(editor.resource).sessionId; - } - return false; + return editor.resource?.scheme === DEBUG_SCHEME && session.getId() === Source.getEncodedDebugData(editor.resource).sessionId; }); this.editorService.closeEditors(editorsToClose); }