mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 13:12:24 -05:00
Merge pull request #7845 from overleaf/bg-snapshot-lost-tracked-changes
[document-updater] consider lost tracked-changes as collapsed ranges GitOrigin-RevId: cf8e15c610f906f1296fdcdd69128ad1e029863a
This commit is contained in:
parent
3a81428ef3
commit
8bffacb2ba
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ module.exports = RangesManager = {
|
||||||
|
|
||||||
const [emptyRangeCountAfter, totalRangeCountAfter] =
|
const [emptyRangeCountAfter, totalRangeCountAfter] =
|
||||||
RangesManager._emptyRangesCount(rangesTracker)
|
RangesManager._emptyRangesCount(rangesTracker)
|
||||||
const rangesWereCollapsed = emptyRangeCountAfter > emptyRangeCountBefore
|
const rangesWereCollapsed =
|
||||||
|
emptyRangeCountAfter > emptyRangeCountBefore ||
|
||||||
|
totalRangeCountAfter + 1 < totalRangeCountBefore // also include the case where multiple ranges were removed
|
||||||
// monitor the change in range count, we may want to snapshot before large decreases
|
// monitor the change in range count, we may want to snapshot before large decreases
|
||||||
if (totalRangeCountAfter < totalRangeCountBefore) {
|
if (totalRangeCountAfter < totalRangeCountBefore) {
|
||||||
Metrics.histogram(
|
Metrics.histogram(
|
||||||
|
|
Loading…
Reference in a new issue