Skip to content

Commit 4864d33

Browse files
committed
feedback
1 parent b0b5c4e commit 4864d33

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ export abstract class ResourceWorkingCopy extends Disposable implements IResourc
145145

146146
//#region Modified Tracking
147147

148-
// Overridden when the Working Copies need to differentiate between
149-
// dirty and modified e.g. scratchpads
150148
isModified(): boolean {
151149
return this.isDirty();
152150
}

src/vs/workbench/services/workingCopy/common/workingCopyBackupTracker.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editor
2121
/**
2222
* The working copy backup tracker deals with:
2323
* - restoring backups that exist
24-
* - creating backups for dirty working copies
24+
* - creating backups for modified working copies
2525
* - deleting backups for saved working copies
2626
* - handling backups on shutdown
2727
*/
@@ -39,8 +39,8 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
3939
) {
4040
super();
4141

42-
// Fill in initial dirty working copies
43-
for (const workingCopy of this.workingCopyService.dirtyWorkingCopies) {
42+
// Fill in initial modified working copies
43+
for (const workingCopy of this.workingCopyService.modifiedWorkingCopies) {
4444
this.onDidRegister(workingCopy);
4545
}
4646

@@ -114,7 +114,7 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
114114
return;
115115
}
116116

117-
if (workingCopy.isDirty()) {
117+
if (workingCopy.isModified()) {
118118
this.scheduleBackup(workingCopy);
119119
}
120120
}
@@ -383,7 +383,7 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
383383
}
384384

385385
// Then, resolve each opened editor to make sure the working copy
386-
// is loaded and the dirty editor appears properly
386+
// is loaded and the modified editor appears properly.
387387
// We only do that for editors that are not active in a group
388388
// already to prevent calling `resolve` twice!
389389
await Promises.settled([...openedEditorsForBackups].map(async openedEditorForBackup => {

0 commit comments

Comments
 (0)