yjs / y-monaco

Monaco editor bindings for Yjs
MIT License
163 stars 31 forks source link

Awareness only includes first selection when there are multiple selections #18

Open TheUnlocked opened 1 year ago

TheUnlocked commented 1 year ago

Checklist

Describe the bug When a user has multiple selections, only one of the selections is included in the user's awareness, and only that one receives the CSS class decorations on other clients.

To Reproduce Steps to reproduce the behavior:

  1. Make multiple selections (e.g. middle click drag, alt click)
  2. Attempt to view those selections from another client

Expected behavior A user's awareness should include all of their selections, and all of a user's selections should be decorated.

Screenshots

image image

Environment Information

guanboo-yang commented 1 year ago

Any updates or where I might find a way to solve this problem?