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.
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 callgetSelectionRanges
multiple times.