Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Monaco selection ranges conversion #198

Merged
merged 1 commit into from
Jun 7, 2024

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
6 checks passed
@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