volarjs / volar.js

💙🌊
https://volarjs.dev/
MIT License
988 stars 47 forks source link

Fix Monaco selection ranges conversion #198

Closed remcohaszing closed 4 months ago

remcohaszing commented 4 months ago

LSP represents an ancestry of selection ranges using the parent property. Monaco editor represents this using an array of selection ranges. This is why one LSP selection range represents an array of Monaco editor selection ranges. It’s not needed to call getSelectionRanges multiple times.

johnsoncodehk commented 4 months ago

LGTM, thanks!