diff --git a/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts b/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts index 2b3c2c638dd0013291ba788a7f3d5ba92c459029..50747e94bde21f47ecdb59936a069bbf0d3a106e 100644 --- a/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts +++ b/src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts @@ -157,7 +157,15 @@ export class NotebookEditorInput extends EditorInput { return this.textModel?.isDirty() || false; } + isReadonly() { + return false; + } + public isSaving(): boolean { + if (this.isUntitled()) { + return false; // untitled is never saving automatically + } + if (!this.isDirty()) { return false; // the editor needs to be dirty for being saved }