This commit is contained in:
Benjamin Pasero
2020-04-30 13:33:38 +02:00
parent c597033691
commit f00d8903af

View File

@@ -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
}