mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Merge remote-tracking branch 'origin/master' into tyriar/hot_exit/14068_load_backups_on_main_process
This commit is contained in:
@@ -83,7 +83,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