@@ -77,12 +77,12 @@ export class LocalHistoryTimeline extends Disposable implements IWorkbenchContri
77
77
private registerListeners ( ) : void {
78
78
79
79
// History changes
80
- this . _register ( this . workingCopyHistoryService . onDidAddEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry , false /* entry added */ ) ) ) ;
81
- this . _register ( this . workingCopyHistoryService . onDidChangeEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry , false /* entry changed */ ) ) ) ;
82
- this . _register ( this . workingCopyHistoryService . onDidReplaceEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry , true /* entry replaced */ ) ) ) ;
83
- this . _register ( this . workingCopyHistoryService . onDidRemoveEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry , true /* entry removed */ ) ) ) ;
84
- this . _register ( this . workingCopyHistoryService . onDidRemoveEntries ( ( ) => this . onDidChangeWorkingCopyHistoryEntry ( undefined /* all entries */ , true /* entry removed */ ) ) ) ;
85
- this . _register ( this . workingCopyHistoryService . onDidMoveEntries ( ( ) => this . onDidChangeWorkingCopyHistoryEntry ( undefined /* all entries */ , true /* entry moved */ ) ) ) ;
80
+ this . _register ( this . workingCopyHistoryService . onDidAddEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry ) ) ) ;
81
+ this . _register ( this . workingCopyHistoryService . onDidChangeEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry ) ) ) ;
82
+ this . _register ( this . workingCopyHistoryService . onDidReplaceEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry ) ) ) ;
83
+ this . _register ( this . workingCopyHistoryService . onDidRemoveEntry ( e => this . onDidChangeWorkingCopyHistoryEntry ( e . entry ) ) ) ;
84
+ this . _register ( this . workingCopyHistoryService . onDidRemoveEntries ( ( ) => this . onDidChangeWorkingCopyHistoryEntry ( undefined /* all entries */ ) ) ) ;
85
+ this . _register ( this . workingCopyHistoryService . onDidMoveEntries ( ( ) => this . onDidChangeWorkingCopyHistoryEntry ( undefined /* all entries */ ) ) ) ;
86
86
87
87
// Configuration changes
88
88
this . _register ( this . configurationService . onDidChangeConfiguration ( e => {
@@ -92,13 +92,13 @@ export class LocalHistoryTimeline extends Disposable implements IWorkbenchContri
92
92
} ) ) ;
93
93
}
94
94
95
- private onDidChangeWorkingCopyHistoryEntry ( entry : IWorkingCopyHistoryEntry | undefined , reset : boolean ) : void {
95
+ private onDidChangeWorkingCopyHistoryEntry ( entry : IWorkingCopyHistoryEntry | undefined ) : void {
96
96
97
97
// Re-emit as timeline change event
98
98
this . _onDidChange . fire ( {
99
99
id : LocalHistoryTimeline . ID ,
100
100
uri : entry ?. workingCopy . resource ,
101
- reset
101
+ reset : true // there is no other way to indicate that items might have been replaced/removed
102
102
} ) ;
103
103
}
104
104
0 commit comments