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

embed jsonrpc types from jsonrpc-core crate #2801

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

the-mikedavis
Copy link
Member

We should not depend on jsonrpc-core anymore:

  • The project just announced it's no longer actively maintained1,
    preferring their new implementation in jsonrpsee.
  • The types are too strict: we would benefit from removing some
    #[serde(deny_unknown_fields)] annotations to allow language
    servers that disrespect the spec2.
  • We don't use much of the project. Just the types out of core.
    These are easy to embed directly into the helix-lsp crate.

Footnotes

  1. https://github.com/paritytech/jsonrpc/pull/674

  2. https://github.com/helix-editor/helix/issues/2786

We should not depend on jsonrpc-core anymore:

* The project just announced it's no longer actively maintained[^1],
  preferring their new implementation in `jsonrpsee`.
* The types are too strict: we would benefit from removing some
  `#[serde(deny_unknown_fields)]` annotations to allow language
  servers that disrespect the spec[^2].
* We don't use much of the project. Just the types out of core.
  These are easy to embed directly into the `helix-lsp` crate.

[^1]: paritytech/jsonrpc#674
[^2]: helix-editor#2786
Copy link
Member

@archseer archseer left a comment

Choose a reason for hiding this comment

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

Agreed! 👍

@archseer archseer merged commit 45ce1eb into helix-editor:master Jun 18, 2022
@the-mikedavis the-mikedavis deleted the md-embed-jsonrpc branch June 18, 2022 13:16
lazytanuki pushed a commit to lazytanuki/helix that referenced this pull request Jun 21, 2022
We should not depend on jsonrpc-core anymore:

* The project just announced it's no longer actively maintained[^1],
  preferring their new implementation in `jsonrpsee`.
* The types are too strict: we would benefit from removing some
  `#[serde(deny_unknown_fields)]` annotations to allow language
  servers that disrespect the spec[^2].
* We don't use much of the project. Just the types out of core.
  These are easy to embed directly into the `helix-lsp` crate.

[^1]: paritytech/jsonrpc#674
[^2]: helix-editor#2786
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.

Unable to use Sorbet LSP for Ruby (LSP invalid method call id=Num(0))
2 participants