Skip to content
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: 6 additions & 0 deletions generator/lsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -13470,6 +13470,12 @@
"name": "Log",
"value": 4,
"documentation": "A log message."
},
{
"name": "Debug",
"value": 5,
"documentation": "A debug message.\n\n@since 3.18.0",
"since": "3.18.0"
}
],
"documentation": "The message type"
Expand Down
5 changes: 5 additions & 0 deletions packages/python/lsprotocol/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ class MessageType(int, enum.Enum):
"""An information message."""
Log = 4
"""A log message."""
Debug = 5
"""A debug message.

@since 3.18.0"""
# Since: 3.18.0


@enum.unique
Expand Down
2 changes: 1 addition & 1 deletion packages/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
name = "lsprotocol"
description = 'Python implementation of the Language Server Protocol.'
version = "2023.0.0a3"
version = "2023.0.0b1"
authors = [
{ name = "Microsoft Corporation", email = "lsprotocol-help@microsoft.com" },
]
Expand Down
6 changes: 3 additions & 3 deletions packages/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ cattrs==23.1.2 \
--hash=sha256:b2bb14311ac17bed0d58785e5a60f022e5431aca3932e3fc5cc8ed8639de50a4 \
--hash=sha256:db1c821b8c537382b2c7c66678c3790091ca0275ac486c76f3c8f3920e83c657
# via -r ./packages/python/requirements.in
exceptiongroup==1.1.2 \
--hash=sha256:12c3e887d6485d16943a309616de20ae5582633e0a2eda17f4e10fd61c1e8af5 \
--hash=sha256:e346e69d186172ca7cf029c8c1d16235aa0e04035e5750b4b95039e65204328f
exceptiongroup==1.1.3 \
--hash=sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9 \
--hash=sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3
# via cattrs
importlib-metadata==6.7.0 \
--hash=sha256:1aaf550d4f73e5d6783e7acb77aec43d49da8017410afae93822cc9cca98c4d4 \
Expand Down
13 changes: 9 additions & 4 deletions packages/rust/lsprotocol/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ pub enum LSPNotificationMethods {

#[derive(Serialize, Deserialize, PartialEq, Debug, Eq, Clone)]
pub enum MessageDirection {
#[serde(rename = "both")]
Both,
#[serde(rename = "clientToServer")]
ClientToServer,
#[serde(rename = "serverToClient")]
ServerToClient,
#[serde(rename = "clientToServer")]
ClientToServer,
#[serde(rename = "both")]
Both,
}

/// A set of predefined token types. This set is not fixed
Expand Down Expand Up @@ -678,6 +678,11 @@ pub enum MessageType {

/// A log message.
Log = 4,

/// A debug message.
///
/// @since 3.18.0
Debug = 5,
}

/// Defines how the host (editor) should sync
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ colorama==0.4.6 \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
# via pytest
exceptiongroup==1.1.2 \
--hash=sha256:12c3e887d6485d16943a309616de20ae5582633e0a2eda17f4e10fd61c1e8af5 \
--hash=sha256:e346e69d186172ca7cf029c8c1d16235aa0e04035e5750b4b95039e65204328f
exceptiongroup==1.1.3 \
--hash=sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9 \
--hash=sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3
# via
# cattrs
# pytest
Expand Down Expand Up @@ -92,9 +92,9 @@ pyrsistent==0.19.3 \
--hash=sha256:f0774bf48631f3a20471dd7c5989657b639fd2d285b861237ea9e82c36a415a9 \
--hash=sha256:f0e7c4b2f77593871e918be000b96c8107da48444d57005b6a6bc61fb4331b2c
# via jsonschema
pytest==7.4.0 \
--hash=sha256:78bf16451a2eb8c7a2ea98e32dc119fd2aa758f1d5d66dbf0a59d69a3969df32 \
--hash=sha256:b4bf8c45bd59934ed84001ad51e11b4ee40d40a1229d2c79f9c592b0a3f6bd8a
pytest==7.4.2 \
--hash=sha256:1d881c6124e08ff0a1bb75ba3ec0bfd8b5354a01c194ddd5a0a870a48d99b002 \
--hash=sha256:a766259cfab564a2ad52cb1aae1b881a75c3eb7e34ca3779697c23ed47c47069
# via -r ./requirements.in
tomli==2.0.1 \
--hash=sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc \
Expand Down