未验证 提交 34e03dda 编写于 作者: A Alex Dima

Fixes #63553: Repaint decorations when the modified editor's tab size changes

上级 1f01e888
......@@ -492,6 +492,12 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
}
}));
this._register(editor.onDidChangeModelOptions((e) => {
if (e.tabSize) {
this._updateDecorationsRunner.schedule();
}
}));
return editor;
}
......@@ -647,6 +653,8 @@ export class DiffEditorWidget extends Disposable implements editorBrowser.IDiffE
this.modifiedEditor.setModel(model ? model.modified : null);
this._updateDecorationsRunner.cancel();
// this.originalEditor.onDidChangeModelOptions
if (model) {
this.originalEditor.setScrollTop(0);
this.modifiedEditor.setScrollTop(0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册