Skip to content

Commit e7df224

Browse files
authored
1 parent e0338cd commit e7df224

File tree

1 file changed

+3
-3
lines changed
  • src/vs/editor/browser/widget/diffEditorWidget2

1 file changed

+3
-3
lines changed

src/vs/editor/browser/widget/diffEditorWidget2/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export function applyViewZones(editor: ICodeEditor, viewZones: IObservable<IObse
333333
viewZonIdsPerViewZone.set(z, id);
334334
}
335335
});
336-
if (setIsUpdating) { setIsUpdating(true); }
336+
if (setIsUpdating) { setIsUpdating(false); }
337337

338338
store.add(autorunHandleChanges('layoutZone on change', {
339339
createEmptyChangeSummary() {
@@ -353,15 +353,15 @@ export function applyViewZones(editor: ICodeEditor, viewZones: IObservable<IObse
353353
}
354354
if (setIsUpdating) { setIsUpdating(true); }
355355
editor.changeViewZones(a => { for (const id of changeSummary) { a.layoutZone(id); } });
356-
if (setIsUpdating) { setIsUpdating(true); }
356+
if (setIsUpdating) { setIsUpdating(false); }
357357
}));
358358
}));
359359

360360
store.add({
361361
dispose() {
362362
if (setIsUpdating) { setIsUpdating(true); }
363363
editor.changeViewZones(a => { for (const id of lastViewZoneIds) { a.removeZone(id); } });
364-
if (setIsUpdating) { setIsUpdating(true); }
364+
if (setIsUpdating) { setIsUpdating(false); }
365365
}
366366
});
367367

0 commit comments

Comments
 (0)