Skip to content

Update to latest lsp spec #264

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 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions generator/lsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -14590,7 +14590,7 @@
"name": "string"
},
"optional": true,
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`."
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples."
}
]
}
Expand Down Expand Up @@ -14623,7 +14623,7 @@
"name": "string"
},
"optional": true,
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`."
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples."
}
]
}
Expand Down Expand Up @@ -14656,7 +14656,7 @@
"kind": "base",
"name": "string"
},
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`."
"documentation": "A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples."
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions packages/python/lsprotocol/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ class TextDocumentFilter_Type1:
validator=attrs.validators.optional(attrs.validators.instance_of(str)),
default=None,
)
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples`."""
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples."""


@attrs.define
Expand All @@ -883,13 +883,13 @@ class TextDocumentFilter_Type2:
validator=attrs.validators.optional(attrs.validators.instance_of(str)),
default=None,
)
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples`."""
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples."""


@attrs.define
class TextDocumentFilter_Type3:
pattern: str = attrs.field(validator=attrs.validators.instance_of(str))
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples`."""
"""A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples."""

language: Optional[str] = attrs.field(
validator=attrs.validators.optional(attrs.validators.instance_of(str)),
Expand Down
10 changes: 5 additions & 5 deletions packages/rust/lsprotocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,10 @@ pub enum LSPNotificationMethods {

#[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)]
pub enum MessageDirection {
#[serde(rename = "clientToServer")]
ClientToServer,
#[serde(rename = "both")]
Both,
#[serde(rename = "clientToServer")]
ClientToServer,
#[serde(rename = "serverToClient")]
ServerToClient,
}
Expand Down Expand Up @@ -1355,7 +1355,7 @@ pub struct StructTextDocumentFilter {
/// A Uri [scheme][`Uri::scheme`], like `file` or `untitled`.
pub scheme: Option<String>,

/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`.
/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.
pub pattern: Option<String>,
}

Expand All @@ -1368,7 +1368,7 @@ pub struct StructTextDocumentFilterScheme {
/// A Uri [scheme][`Uri::scheme`], like `file` or `untitled`.
pub scheme: String,

/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`.
/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.
pub pattern: Option<String>,
}

Expand All @@ -1381,7 +1381,7 @@ pub struct StructTextDocumentFilterPattern {
/// A Uri [scheme][`Uri::scheme`], like `file` or `untitled`.
pub scheme: Option<String>,

/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples`.
/// A glob pattern, like **​/*.{ts,js}. See TextDocumentFilter for examples.
pub pattern: String,
}

Expand Down