-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove bug adding a closing parenthesis/bracket/etc. when it is typed and next character is that type of parenthesis/bracket/etc. #78988
Comments
(Experimental duplicate detection) |
Can you reproduce this with all your extensions disabled? There was a change in this area in 1.37, trying to make VS Code do a better job. I guess it's possible one of your extensions is interacting badly with that change. |
Hi @gjsjohnmurray - I disabled all extensions and the error was still reproduced. |
@adrianme213 can you post a screen recording? Even better if you first issue the |
Also see #78902, of which this may be a duplicate. |
What programming language are you using? Here I am trying what you describe in JavaScript and the closing As @gjsjohnmurray mentions, we have made some changes to the overtyping in 1.38 (mainly to make the editor overtype only those characters inserted automatically and not others) and I would like to find out if you are hitting some corner case or if you would simply want the old behavior. |
@alexandrudima @gjsjohnmurray |
@adrianme213 thanks for the recording. AFAIK what you're seeing is the expected new 1.37 behaviour. It fixes the issue described by the OP of #37315. Other than muscle memory, any reason why you type the closing paren after inserting the third parameter? |
@gjsjohnmurray - thanks for the update and the reference. I identify with the #37315 people vocalizing about muscle memory and speed, but understand the new behavior and why it makes sense given autoclosing bracket inserts. Thank you again. |
Issue Type: Bug
Prior to the latest update, I could open a new pair of parentheses, type inside, and then hit the closing parenthesis when I was finished and I would "jump over" the closing parenthesis. With this update, I add another closing bracket instead.
Steps to recreate:
At this point, two closing parentheses should exist whereas before this last update this did not happen.
VS Code version: Code 1.37.0 (036a6b1, 2019-08-08T01:22:37.660Z)
OS version: Darwin x64 18.2.0
Extensions (5)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: