You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.