CodeEditSourceEditor icon indicating copy to clipboard operation
CodeEditSourceEditor copied to clipboard

🐞 Double closing bracket output when typing opening bracket

Open 0xWDG opened this issue 2 years ago • 1 comments

If i type a new function (e.g.) function x( it appends ) which is great. What is less great, I'm also typing ), this will end in function x ()), it would be nice if it behaves more like VSCode does.

Happening now

https://user-images.githubusercontent.com/1290461/173197775-90976647-82da-42f9-a036-186bcc3fb34c.mov

Expectation

https://user-images.githubusercontent.com/1290461/173197784-44df068e-73e1-4a5a-ae5a-05711273e443.mov

0xWDG avatar Jun 11 '22 17:06 0xWDG

Good point! I would also like to find a better way to handle bracket pairs. Currently we cannot use " or ' because it gets stuck in an infinite loop.

lukepistrol avatar Jun 12 '22 06:06 lukepistrol

Could be implemented using https://github.com/ChimeHQ/TextFormation

lukepistrol avatar Dec 01 '22 15:12 lukepistrol