Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🐞 Automatically closing outer nested bracket pair when trying to close inner bracket pair #320

Open
Labels
bugSomething isn't working
@austincondiff

Description

Description

The source editor automatically closes the outer nested bracket pair when trying to close an inner bracket pair.

To Reproduce

  1. Type "useEffect(("
  2. Notice it closes the inner bracket like this useEffect((|)
  3. Try to close the inner bracket pair by pressing ")"
  4. 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:

Screen.Recording.2025年05月27日.at.1.46.36.PM.mov

Works as expected (when adding an arg)

Screen.Recording.2025年05月27日.at.2.06.26.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /