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

refactor: adapt to API changes in LSP #113

Merged
merged 1 commit into from
Jan 21, 2024
Merged

refactor: adapt to API changes in LSP #113

merged 1 commit into from
Jan 21, 2024

Conversation

rchl
Copy link
Member

@rchl rchl commented Jan 14, 2024

Adapt to changes (sublimelsp/LSP#2393) in (yet to be released at the time of writing this) LSP 1.28.0.

Warning

The changes need to be released at the same time as the new version of LSP

Copy link
Member

@predragnikolic predragnikolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, works.

if isinstance(edits, Error):
print('[{}] Error handling the "{}" request. Falling back to native join.'.format(
self.session_name, JoinLinesRequest.Type))
self.view.run_command('join_lines')
return
if edits:
apply_text_edits_to_view(edits, self.view)
apply_text_edits(self.view, edits, required_view_version=document_version)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to see when lines like this get removed

@predragnikolic predragnikolic merged commit 0c65595 into main Jan 21, 2024
@predragnikolic predragnikolic deleted the refactor/api branch January 21, 2024 21:58
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