mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
fixes #14835
This commit is contained in:
@@ -75,7 +75,11 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
|
||||
}
|
||||
|
||||
public isDirty(): boolean {
|
||||
return this.cachedModel && this.cachedModel.isDirty();
|
||||
if (this.cachedModel) {
|
||||
return this.cachedModel.isDirty();
|
||||
}
|
||||
|
||||
return this.hasAssociatedFilePath; // untitled files with associated path are always dirty
|
||||
}
|
||||
|
||||
public confirmSave(): ConfirmResult {
|
||||
|
||||
Reference in New Issue
Block a user