(view: EditorView)
| 201 | } |
| 202 | |
| 203 | scheduleBuild(view: EditorView): void { |
| 204 | this.pendingView = view; |
| 205 | if (this.raf) return; |
| 206 | this.raf = requestAnimationFrame(() => { |
| 207 | this.raf = 0; |
| 208 | const pendingView = this.pendingView; |
| 209 | this.pendingView = null; |
| 210 | if (!pendingView) return; |
| 211 | this.decorations = this.buildDecorations(pendingView); |
| 212 | pendingView.dispatch({}); |
| 213 | }); |
| 214 | } |
| 215 | |
| 216 | buildDecorations(view: EditorView): DecorationSet { |
| 217 | const visibleRanges = view.visibleRanges; |
no test coverage detected