yjs / y-monaco

Monaco editor bindings for Yjs
MIT License
168 stars 33 forks source link

Incorrect selection after undo #19

Open ivan-kzn opened 1 year ago

ivan-kzn commented 1 year ago

Describe the bug If you select some text and delete it, then you are undoing previous action - another users connected via yjs will see incorrect selection

To Reproduce Steps to reproduce the behavior:

  1. Two collaborative users
  2. First user selects some text image
  3. Second user sees the selected text image
  4. First user deletes text and then presses Ctrl+Z
  5. First user sees correct text selection image
  6. Second user sees incorrect selection image

Expected behavior Second user should see exactly same text selection

Environment Information

Additional context Add any other context about the problem here.