From 18b8041bc63d853e8be1c62fe4e4a35b7c7b49b3 Mon Sep 17 00:00:00 2001 From: Markus Westerlind Date: Tue, 4 Jun 2024 14:25:30 +0200 Subject: [PATCH 1/2] fix: Correct TextDocumentChangeRegistrationOptions::sync_kind This should use the newtype that already exists. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e6c6749..3dad9bc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1712,7 +1712,7 @@ pub struct TextDocumentSyncOptions { pub open_close: Option, /// Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full - /// and TextDocumentSyncKindIncremental. + /// and TextDocumentSyncKind.Incremental. #[serde(skip_serializing_if = "Option::is_none")] pub change: Option, @@ -2187,8 +2187,8 @@ pub struct TextDocumentChangeRegistrationOptions { pub document_selector: Option, /// How documents are synced to the server. See TextDocumentSyncKind.Full - /// and TextDocumentSyncKindIncremental. - pub sync_kind: i32, + /// and TextDocumentSyncKind.Incremental. + pub sync_kind: TextDocumentSyncKind, } /// The parameters send in a will save text document notification. From 17cf54197f2e904e5776bb347be33703db1f245a Mon Sep 17 00:00:00 2001 From: Markus Westerlind Date: Tue, 4 Jun 2024 14:31:08 +0200 Subject: [PATCH 2/2] chore: Workaround nightly rustdoc warning --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3dad9bc..6ffeab5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2458,8 +2458,8 @@ pub enum Documentation { /// /// The pair of a language and a value is an equivalent to markdown: /// -/// ```${language} -/// ${value} +/// ```LANGUAGE +/// VALUE /// ``` #[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)] #[serde(untagged)]