]> git.proxmox.com Git - rustc.git/blobdiff - vendor/lsp-types/src/lib.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / vendor / lsp-types / src / lib.rs
index 503264d1901fa0cd916f9053e27d1de1218dfc1f..6a4f544d2afac3c6e0826bb426e726e01d7a69f4 100644 (file)
@@ -985,7 +985,7 @@ pub type DocumentSelector = Vec<DocumentFilter>;
 
 // ========================= 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<bool>,
 
     /// The client supports additional metadata in the form of definition links.
+    #[serde(skip_serializing_if = "Option::is_none")]
     pub link_support: Option<bool>,
 }
 
@@ -1781,7 +1782,7 @@ pub struct ServerCapabilities {
     #[serde(skip_serializing_if = "Option::is_none")]
     pub type_definition_provider: Option<TypeDefinitionProviderCapability>,
 
-    /// the server provides goto implementation support.
+    /// The server provides goto implementation support.
     #[serde(skip_serializing_if = "Option::is_none")]
     pub implementation_provider: Option<ImplementationProviderCapability>,