Make auto-closing tag consume following closing angle bracket #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the behavior of
autoClosingTagextension take into account leading>, it consumes the>instead of adding a new one.I found this behavior to be more sane as I'm writing code inside codemirror.
Here's a video of the interaction
https://user-images.githubusercontent.com/1994028/192403206-94ef735b-d1e0-4cfa-98c2-c63481e21e7f.mp4
And here's a before interaction
https://user-images.githubusercontent.com/1994028/192403216-8e4e2f3f-2ee2-4793-a567-11444c32fe9b.mp4
I can update the JSX auto closing extension if this change makes sense to you.
Yes, this looks like a good idea.