diff --git a/src/vs/workbench/common/editor/untitledEditorInput.ts b/src/vs/workbench/common/editor/untitledEditorInput.ts index 2527da2026170e1b71f31707066744f8ca9688c6..3e7dab7fc96e80e3d1eaac60f64c78bfc8a354b4 100644 --- a/src/vs/workbench/common/editor/untitledEditorInput.ts +++ b/src/vs/workbench/common/editor/untitledEditorInput.ts @@ -87,7 +87,8 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput { return this.cachedModel.isDirty(); } - return this.hasAssociatedFilePath; // untitled files with associated path are always dirty + // untitled files with an associated path or restore resource are always dirty + return this.hasAssociatedFilePath || !!this.restoreResource; } public confirmSave(): ConfirmResult {