Skip to content

Commit 64d29b0

Browse files
committed
1 parent 9f07996 commit 64d29b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/editor/common/services/markerDecorationsServiceImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class MarkerDecorationsService extends Disposable implements IMarkerDecor
115115
private _onModelAdded(model: ITextModel): void {
116116
const markerDecorations = new MarkerDecorations(model);
117117
this._markerDecorations.set(MODEL_ID(model.uri), markerDecorations);
118-
markerDecorations.register(model.onDidChangeContent(() => this._updateDecorations(markerDecorations)));
118+
markerDecorations.register(Event.debounce(model.onDidChangeContent, () => undefined, 100)(() => this._updateDecorations(markerDecorations)));
119119
this._updateDecorations(markerDecorations);
120120
}
121121

0 commit comments

Comments
 (0)