Skip to content

Commit

Permalink
fix: add missing rename_all serde attribute
Browse files Browse the repository at this point in the history
The `SignatureInformation` and `ParameterInformation` are missing the
`#[serde(rename_all = "camelCase")]` attribute. This makes the
serialised versions not conformant with the LSP spec.

This patch adds the missing attributes.
  • Loading branch information
Alex Muscar committed Oct 10, 2021
1 parent 48201b2 commit b403cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/signature_help.rs
Expand Up @@ -154,6 +154,7 @@ pub struct SignatureHelp {
/// can have a label, like a function-name, a doc-comment, and
/// a set of parameters.
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct SignatureInformation {
/// The label of this signature. Will be shown in
/// the UI.
Expand All @@ -180,6 +181,7 @@ pub struct SignatureInformation {
/// Represents a parameter of a callable-signature. A parameter can
/// have a label and a doc-comment.
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct ParameterInformation {
/// The label of this parameter information.
///
Expand Down

0 comments on commit b403cba

Please sign in to comment.