From a560e4b97d4e6959cfa32d67c40c1ffbe5a25dbf Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Thu, 5 Sep 2024 16:34:26 +0200 Subject: [PATCH] fix #216922 (#227693) --- src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts b/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts index 89c356f12e9..2e92193c670 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookEditorInput.ts @@ -86,7 +86,7 @@ export class NotebookEditorInput extends AbstractResourceEditorInput { }); this._register(extensionService.onWillStop(e => { - if (!this.isDirty()) { + if (!e.auto && !this.isDirty()) { return; }