Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Do not auto-close when ending with open autoClosingPair #55314
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes
This bug happens with any line that ends in a character that starts an open autoClosingPair. It's especially prevalent in the Python language mode because Python has so many open autoClosingPairs that begin with a letter, but the bug will present itself in any language mode that has open autoClosingPairs similar to Python's.
added a commit
Jul 28, 2018
@kieferrm I'm reproducing the insider version of VSCode w/o any extensions installed. I believe you're failing to replicate the issue because you're not ending the string in the correct character. The bug will only present itself when a line ends in in r, u, f, or b.
The issue is caused by a bug in the way electricCharacters are recognized. It presents itself in the native Python extension because python has multi-character opening autoClosingPairs. For example
I investigated this over the weekend and got a working fix in PR #55315.