From 17d40c6057c88f4c432b0d7bac88e1b84cb7e67f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:03:36 +0200 Subject: Adding upstream version 1.65.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/lsp-types/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vendor/lsp-types/src/lib.rs') diff --git a/vendor/lsp-types/src/lib.rs b/vendor/lsp-types/src/lib.rs index 503264d19..6a4f544d2 100644 --- a/vendor/lsp-types/src/lib.rs +++ b/vendor/lsp-types/src/lib.rs @@ -985,7 +985,7 @@ pub type DocumentSelector = Vec; // ========================= Actual Protocol ========================= -#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)] +#[derive(Debug, PartialEq, Clone, Deserialize, Serialize, Default)] #[serde(rename_all = "camelCase")] pub struct InitializeParams { /// The process Id of the parent process that started @@ -1099,6 +1099,7 @@ pub struct GotoCapability { pub dynamic_registration: Option, /// The client supports additional metadata in the form of definition links. + #[serde(skip_serializing_if = "Option::is_none")] pub link_support: Option, } @@ -1781,7 +1782,7 @@ pub struct ServerCapabilities { #[serde(skip_serializing_if = "Option::is_none")] pub type_definition_provider: Option, - /// the server provides goto implementation support. + /// The server provides goto implementation support. #[serde(skip_serializing_if = "Option::is_none")] pub implementation_provider: Option, -- cgit v1.2.3