Skip to content

fix: Correct TextDocumentChangeRegistrationOptions::sync_kind #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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 Expand Up @@ -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)]
Expand Down
Loading