(update: ViewUpdate)
| 149 | } |
| 150 | |
| 151 | update(update: ViewUpdate): void { |
| 152 | if ( |
| 153 | update.transactions.some((t) => t.effects.some((e) => e.is(setHints))) |
| 154 | ) { |
| 155 | this.decorations = buildDecos( |
| 156 | update.state.field(hintsField, false) ?? [], |
| 157 | update.state.doc.length, |
| 158 | ); |
| 159 | } |
| 160 | if (update.docChanged || update.viewportChanged) { |
| 161 | this.schedule(); |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | schedule(): void { |
| 166 | if (this.timer) clearTimeout(this.timer); |
no test coverage detected