We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec5a08 commit bc7496eCopy full SHA for bc7496e
src/vs/workbench/browser/parts/editor/editorGroupView.ts
@@ -1576,7 +1576,9 @@ export class EditorGroupView extends Themable implements IEditorGroupView {
1576
// again to see if anything needs to happen before closing for good.
1577
// This can happen for example if `autoSave: onFocusChange` is configured
1578
// so that the save happens when the dialog opens.
1579
- if (!this.shouldConfirmClose(editor)) {
+ // However, we only do this unless a custom confirm handler is installed
1580
+ // that may not be fit to be asked a second time right after.
1581
+ if (!editor.closeHandler && !this.shouldConfirmClose(editor)) {
1582
return confirmation === ConfirmResult.CANCEL ? true : false;
1583
}
1584
0 commit comments