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: correctly deserialize HoverContents from 2-length array #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XiNiHa
Copy link

@XiNiHa XiNiHa commented Dec 10, 2024

This fixes an issue where Hover.contents with an array of 2 strings gets deserialized into HoverContents::Scalar(MarkedString::LanguageString { language: contents[0], value: contents[1] }) instead of HoverContents::Array.

Tested this change through Zed (it uses this package to ser-de LSP RPCs)

Before:
스크린샷 2024-12-09 오후 10 24 39

After:
스크린샷 2024-12-09 오후 10 19 11

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