🐞 Automatically closing outer nested bracket pair when trying to close inner bracket pair
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the exact nested-parenthesis sequence in the source editor: type useEffect(( and press ) with the cursor before the existing outer closing bracket. Trace the bracket-closing behavior and verify that the inner pair receives a closing bracket without replacing the outer pair.
Written by the indexing model from the issue text.
Description
Description
The source editor automatically closes the outer nested bracket pair when trying to close an inner bracket pair.
To Reproduce
- Type "useEffect(("
- Notice it closes the inner bracket like this
useEffect((|) - Try to close the inner bracket pair by pressing ")"
- It thinks you are trying to close the outer bracket pair and replaces the outer closing bracket becoming
useEffect(()|placing the cursor at the end.
Expected Behavior
We should recognize we are in a unclosed bracket pair which is inside a closed bracket pair. instead of closing, add a closing bracket instead of replacing the outer bracket pair.
Screenshots
Doesn't work as expected:
https://github.com/user-attachments/assets/3dae191a-1f84-4a13-a2de-41bdf5f602e0
Works as expected (when adding an arg)
https://github.com/user-attachments/assets/3a27b2f4-d6a2-474d-828b-fc31234f6c1f
- Dominant language
- Swift
- Stars
- 720
- Forks
- 162
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeEditApp/CodeEditSourceEditor
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
CodeEditApp/CodeEditSourceEditor#377 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
CodeEditApp/CodeEditSourceEditor#376 · 1 comment ·
-
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
CodeEditApp/CodeEditSourceEditor#378 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
All issues in CodeEditApp/CodeEditSourceEditor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
manaflow-ai/cmux#13763 ·
-
type: feature request
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
googleapis/google-cloud-swift#1036 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
wultra/mtoken-sdk-ios#253 ·
-
area:dictation documentation P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
uttrflow/uttrflow-swift#1180 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100