提交 f00d8903 编写于 作者: B Benjamin Pasero

fix #96673

上级 c5970336
...@@ -157,7 +157,15 @@ export class NotebookEditorInput extends EditorInput { ...@@ -157,7 +157,15 @@ export class NotebookEditorInput extends EditorInput {
return this.textModel?.isDirty() || false; return this.textModel?.isDirty() || false;
} }
isReadonly() {
return false;
}
public isSaving(): boolean { public isSaving(): boolean {
if (this.isUntitled()) {
return false; // untitled is never saving automatically
}
if (!this.isDirty()) { if (!this.isDirty()) {
return false; // the editor needs to be dirty for being saved return false; // the editor needs to be dirty for being saved
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册