CodeEditApp / CodeEditApp/CodeEditSourceEditor

🐞 Bracket pair highlight breaks editor while working on Javascript

未關閉
#361 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Swift
星號
719
分支
160
PR 合併指標
30 天內沒有已合併 PR

描述

### Description

The "Bracket Pair Highlight" feature breaks the editor when working on Javascript code.

All options (Bordered, Flash, Underline) result in the same issue.

Tested both within a .js file and within a tag in an .html file. The behaviour didn't happen outside of the <script> tags within the HTML file as I suspect it's a bug in the syntax highlighting code.

### To Reproduce

1. Go to CodeEdit menu > Settings > Text Editing
2. Enable "Bracket Pair Highlight" (Same behaviour across all options)
3. Create a new javascript (.js) file - OR - an HTML file (.html) with a <script> section.
4. Go back to the editor and try typing in a function call e.g.: function('')
5. After typing the opening bracket, keyboard input will stop responding in the editor.

### Expected Behavior

For the editor to continue working.

### Version Information

CodeEdit: 0.3.4-alpha (45)
macOS: Sequoia 15.5 (24F74)
Xcode: 16.3.0.0.1.1742442376

### Additional Context

Tested both with a .js file and within a <script> tag in an .html file.

### Screenshots

_No response_

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Reproduce the issue in CodeEditSourceEditor 0.3.4-alpha with Bracket Pair Highlight enabled for all three styles, first in a .js file and then inside an HTML section. Inspect the Swift syntax-highlighting and tree-sitter integration involved in bracket highlighting, and compare behavior outside the script section. Done means typing remains responsive after entering an opening bracket in JavaScript.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript, swift
領域
tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。