Skip to content

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

@WillLillis
Copy link

Related: serde-rs/json#1244

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