Skip to content

Commit 747296d

Browse files
authored
Merge pull request #286 from gluon-lang/issue-285
fix: Correct TextDocumentChangeRegistrationOptions::sync_kind
2 parents 310915c + 17cf541 commit 747296d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1712,7 +1712,7 @@ pub struct TextDocumentSyncOptions {
17121712
pub open_close: Option<bool>,
17131713

17141714
/// Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
1715-
/// and TextDocumentSyncKindIncremental.
1715+
/// and TextDocumentSyncKind.Incremental.
17161716
#[serde(skip_serializing_if = "Option::is_none")]
17171717
pub change: Option<TextDocumentSyncKind>,
17181718

@@ -2187,8 +2187,8 @@ pub struct TextDocumentChangeRegistrationOptions {
21872187
pub document_selector: Option<DocumentSelector>,
21882188

21892189
/// How documents are synced to the server. See TextDocumentSyncKind.Full
2190-
/// and TextDocumentSyncKindIncremental.
2191-
pub sync_kind: i32,
2190+
/// and TextDocumentSyncKind.Incremental.
2191+
pub sync_kind: TextDocumentSyncKind,
21922192
}
21932193

21942194
/// The parameters send in a will save text document notification.
@@ -2458,8 +2458,8 @@ pub enum Documentation {
24582458
///
24592459
/// The pair of a language and a value is an equivalent to markdown:
24602460
///
2461-
/// ```${language}
2462-
/// ${value}
2461+
/// ```LANGUAGE
2462+
/// VALUE
24632463
/// ```
24642464
#[derive(Debug, Eq, PartialEq, Clone, Deserialize, Serialize)]
24652465
#[serde(untagged)]

0 commit comments

Comments
 (0)