Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Strange cursor behavior after workspace.applyEdit(); #11841
I am working on an extension that will inject some text into your document at the current cursor (or all cursors if there are multiple). I'm seeing some weird behavior with the cursor after inserting the text.
Steps to Reproduce:
That seems like weird behavior right? I would expect the cursor to move one space to the left, but instead of jumped to the beginning of the inserted text, where your cursor was before inserting the text. Is this a bug or intended behavior?
On my machine, after inserted (multiline, i.e. with
How to go to a position inside