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 some LSP errors from converting between line / column numbers and positions #134

Merged
merged 2 commits into from
Sep 29, 2024

Conversation

kylewlacy
Copy link
Member

This PR makes some minor tweaks to the LSP that should resolve a few errors and exceptions:

  • Log warning message when deserializing response from LSP fails (this should help debug future failures)
  • Prevent Lsp.diagnostic() from returning out-of-bounds line / column numbers causing deserialization error
  • Catch exceptions from ts.getPositionOfLineAndCharacter()

@kylewlacy kylewlacy merged commit 70bdb74 into main Sep 29, 2024
5 checks passed
@kylewlacy kylewlacy deleted the fix-some-lsp-errors branch September 29, 2024 23:41
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.

1 participant