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

custom editor - isSaving never for untitled

上级 0ac3b111
...@@ -119,6 +119,10 @@ export class CustomEditorInput extends LazilyResolvedWebviewEditorInput { ...@@ -119,6 +119,10 @@ export class CustomEditorInput extends LazilyResolvedWebviewEditorInput {
} }
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.
先完成此消息的编辑!
想要评论请 注册