4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import { IMarkerService , IMarker , MarkerSeverity , MarkerTag } from 'vs/platform/markers/common/markers' ;
7
- import { Disposable , toDisposable , IDisposable } from 'vs/base/common/lifecycle' ;
7
+ import { Disposable , toDisposable } from 'vs/base/common/lifecycle' ;
8
8
import { URI } from 'vs/base/common/uri' ;
9
9
import { IModelDeltaDecoration , ITextModel , IModelDecorationOptions , TrackedRangeStickiness , OverviewRulerLane , IModelDecoration , MinimapPosition , IModelDecorationMinimapOptions } from 'vs/editor/common/model' ;
10
10
import { ClassName } from 'vs/editor/common/model/intervalTree' ;
@@ -16,7 +16,6 @@ import { IMarkerDecorationsService } from 'vs/editor/common/services/markersDeco
16
16
import { Schemas } from 'vs/base/common/network' ;
17
17
import { Emitter , Event } from 'vs/base/common/event' ;
18
18
import { minimapWarning , minimapError } from 'vs/platform/theme/common/colorRegistry' ;
19
- import { Delayer } from 'vs/base/common/async' ;
20
19
21
20
function MODEL_ID ( resource : URI ) : string {
22
21
return resource . toString ( ) ;
@@ -36,10 +35,6 @@ class MarkerDecorations extends Disposable {
36
35
} ) ) ;
37
36
}
38
37
39
- register < T extends IDisposable > ( t : T ) : T {
40
- return super . _register ( t ) ;
41
- }
42
-
43
38
public update ( markers : IMarker [ ] , newDecorations : IModelDeltaDecoration [ ] ) : boolean {
44
39
const oldIds = [ ...this . _markersData . keys ( ) ] ;
45
40
this . _markersData . clear ( ) ;
@@ -114,8 +109,6 @@ export class MarkerDecorationsService extends Disposable implements IMarkerDecor
114
109
private _onModelAdded ( model : ITextModel ) : void {
115
110
const markerDecorations = new MarkerDecorations ( model ) ;
116
111
this . _markerDecorations . set ( MODEL_ID ( model . uri ) , markerDecorations ) ;
117
- const delayer = markerDecorations . register ( new Delayer ( 100 ) ) ;
118
- markerDecorations . register ( model . onDidChangeContent ( ( ) => delayer . trigger ( ( ) => this . _updateDecorations ( markerDecorations ) ) ) ) ;
119
112
this . _updateDecorations ( markerDecorations ) ;
120
113
}
121
114
0 commit comments