Skip to content

Commit f00d890

Browse files
author
Benjamin Pasero
committed
1 parent c597033 commit f00d890

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/vs/workbench/contrib/notebook/browser/notebookEditorInput.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,15 @@ export class NotebookEditorInput extends EditorInput {
157157
return this.textModel?.isDirty() || false;
158158
}
159159

160+
isReadonly() {
161+
return false;
162+
}
163+
160164
public isSaving(): boolean {
165+
if (this.isUntitled()) {
166+
return false; // untitled is never saving automatically
167+
}
168+
161169
if (!this.isDirty()) {
162170
return false; // the editor needs to be dirty for being saved
163171
}

0 commit comments

Comments
 (0)