mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 23:32:36 -05:00
fix #96673
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user