Browse Source

Ensure that change decorations are mapped through updates (#30663)

GitOrigin-RevId: 9529e308594b771191f71751478c2118bd91a84e
Alf Eaton 9 months ago
parent
commit
5204ec5d0b

+ 1 - 0
services/web/frontend/js/features/source-editor/extensions/ranges.ts

@@ -199,6 +199,7 @@ export const ranges = () => [
                 tr.effects.some(effect => effect.is(updateRangesEffect))
             )
           ) {
+            this.decorations = this.decorations.map(update.changes)
             return
           }