ajaxorg / ajaxorg/ace

ace.js: search highlighting makes the editor unresponsive on large folded document

未关闭
#5,993 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug p2
主要语言
JavaScript
星标
27.1k
派生
5.3k
PR 合并指标
30 天内没有已合并 PR

描述

### Describe the bug

Search highlighting can make the editor very unresponsive when searching a large, heavily folded document.

### Expected Behavior

Editor should remain responsive independent of folded sections

### Current Behavior

Editor becomes unresponsive

### Reproduction Steps

1. Open: https://sekedus.github.io/ace/kitchen-sink.html
2. Paste the contents of test.xodr.xml
3. Fold a lot of high level `` elements (like 15-20)
4. Search for "Road" and scroll, the editor will be very unresponsive

[test.xodr.xml](https://github.com/user-attachments/files/30163372/test.xodr.xml)

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### Ace Version / Browser / OS / Keyboard layout

v1.44.0 / Safari / Mac OS 26 / DE

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。