diff --git a/src/vs/editor/browser/widget/diffEditorWidget.ts b/src/vs/editor/browser/widget/diffEditorWidget.ts index e77d846a845..d988120e6b0 100644 --- a/src/vs/editor/browser/widget/diffEditorWidget.ts +++ b/src/vs/editor/browser/widget/diffEditorWidget.ts @@ -516,9 +516,13 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE if (!editor.getModel()) { return; } - if (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.wrappingInfo)) { + if (e.hasChanged(EditorOption.fontInfo)) { this._updateDecorationsRunner.schedule(); } + if (e.hasChanged(EditorOption.wrappingInfo)) { + this._updateDecorationsRunner.cancel(); + this._updateDecorations(); + } })); this._register(editor.onDidChangeModelContent(() => { @@ -574,9 +578,13 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE if (!editor.getModel()) { return; } - if (e.hasChanged(EditorOption.fontInfo) || e.hasChanged(EditorOption.wrappingInfo)) { + if (e.hasChanged(EditorOption.fontInfo)) { this._updateDecorationsRunner.schedule(); } + if (e.hasChanged(EditorOption.wrappingInfo)) { + this._updateDecorationsRunner.cancel(); + this._updateDecorations(); + } })); this._register(editor.onDidChangeModelContent(() => {