@@ -21,7 +21,7 @@ import { IEditorGroupsService } from 'vs/workbench/services/editor/common/editor
21
21
/**
22
22
* The working copy backup tracker deals with:
23
23
* - restoring backups that exist
24
- * - creating backups for dirty working copies
24
+ * - creating backups for modified working copies
25
25
* - deleting backups for saved working copies
26
26
* - handling backups on shutdown
27
27
*/
@@ -39,8 +39,8 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
39
39
) {
40
40
super ( ) ;
41
41
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 ) {
44
44
this . onDidRegister ( workingCopy ) ;
45
45
}
46
46
@@ -114,7 +114,7 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
114
114
return ;
115
115
}
116
116
117
- if ( workingCopy . isDirty ( ) ) {
117
+ if ( workingCopy . isModified ( ) ) {
118
118
this . scheduleBackup ( workingCopy ) ;
119
119
}
120
120
}
@@ -383,7 +383,7 @@ export abstract class WorkingCopyBackupTracker extends Disposable {
383
383
}
384
384
385
385
// 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.
387
387
// We only do that for editors that are not active in a group
388
388
// already to prevent calling `resolve` twice!
389
389
await Promises . settled ( [ ...openedEditorsForBackups ] . map ( async openedEditorForBackup => {
0 commit comments