Skip to content

Fix Monaco selection ranges conversion#198

Merged
johnsoncodehk merged 1 commit intomasterfrom
monaco-selection-ranges
Jun 7, 2024
Merged

Fix Monaco selection ranges conversion#198
johnsoncodehk merged 1 commit intomasterfrom
monaco-selection-ranges

Conversation

@remcohaszing
Copy link
Member

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 call
`getSelectionRanges` multiple times.
@johnsoncodehk
Copy link
Member

LGTM, thanks!

@johnsoncodehk johnsoncodehk merged commit 35478d9 into master Jun 7, 2024
@johnsoncodehk johnsoncodehk deleted the monaco-selection-ranges branch June 7, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants