From 64d29b001b4ebbf5fb0a49bf7837841d37ba37e2 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Tue, 5 May 2020 18:25:45 +0200 Subject: [PATCH] Fix #96914 --- src/vs/editor/common/services/markerDecorationsServiceImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/editor/common/services/markerDecorationsServiceImpl.ts b/src/vs/editor/common/services/markerDecorationsServiceImpl.ts index ad1fd1c0e2a..90fabd4ac48 100644 --- a/src/vs/editor/common/services/markerDecorationsServiceImpl.ts +++ b/src/vs/editor/common/services/markerDecorationsServiceImpl.ts @@ -115,7 +115,7 @@ export class MarkerDecorationsService extends Disposable implements IMarkerDecor private _onModelAdded(model: ITextModel): void { const markerDecorations = new MarkerDecorations(model); this._markerDecorations.set(MODEL_ID(model.uri), markerDecorations); - markerDecorations.register(model.onDidChangeContent(() => this._updateDecorations(markerDecorations))); + markerDecorations.register(Event.debounce(model.onDidChangeContent, () => undefined, 100)(() => this._updateDecorations(markerDecorations))); this._updateDecorations(markerDecorations); } -- GitLab