瀏覽代碼

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

GitOrigin-RevId: 9529e308594b771191f71751478c2118bd91a84e
Alf Eaton 9 月之前
父節點
當前提交
5204ec5d0b
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      services/web/frontend/js/features/source-editor/extensions/ranges.ts

+ 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))
                 tr.effects.some(effect => effect.is(updateRangesEffect))
             )
             )
           ) {
           ) {
+            this.decorations = this.decorations.map(update.changes)
             return
             return
           }
           }