Skip to content

Commit

Permalink
fix: Correct TextDocumentChangeRegistrationOptions::sync_kind
Browse files Browse the repository at this point in the history
This should use the newtype that already exists.
  • Loading branch information
Marwes committed Jun 4, 2024
1 parent 18ed1b8 commit 18b8041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1712,7 +1712,7 @@ pub struct TextDocumentSyncOptions {
pub open_close: Option<bool>,

/// 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<TextDocumentSyncKind>,

Expand Down Expand Up @@ -2187,8 +2187,8 @@ pub struct TextDocumentChangeRegistrationOptions {
pub document_selector: Option<DocumentSelector>,

/// 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.
Expand Down

0 comments on commit 18b8041

Please sign in to comment.