mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-12 11:39:57 +01:00
Update decorations synchronously when the wrapping info changes
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user