()
| 286 | // Explorers share one highlight per window, so styles.css can style it by |
| 287 | // name. Each search adds and removes only its own ranges. |
| 288 | const getHighlight = () => { |
| 289 | let highlight = registry.get(HIGHLIGHT_NAME) |
| 290 | if (!highlight) { |
| 291 | highlight = new view.Highlight() |
| 292 | registry.set(HIGHLIGHT_NAME, highlight) |
| 293 | } |
| 294 | return highlight |
| 295 | } |
| 296 | createEffect( |
| 297 | on(search, () => { |
| 298 | getHighlight() |
no test coverage detected