Skip to content

Commit

Permalink
build(deps): bump lsprotocol to 2023.0.0b1
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Sep 24, 2023
1 parent b2c6f3e commit 4f417c3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions pygls/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
TYPE_CHECKING,
)

from pygls.server import WebSocketTransportAdapter

if TYPE_CHECKING:
from pygls.server import LanguageServer
from pygls.server import LanguageServer, WebSocketTransportAdapter


import attrs
Expand Down Expand Up @@ -90,7 +88,6 @@
WORKSPACE_DID_CHANGE_WORKSPACE_FOLDERS,
WORKSPACE_EXECUTE_COMMAND,
WORKSPACE_SEMANTIC_TOKENS_REFRESH,
PositionEncodingKind,
)
from lsprotocol.types import (
ApplyWorkspaceEditParams,
Expand Down Expand Up @@ -232,10 +229,6 @@ def default_converter():

converter.register_structure_hook(JsonRPCNotification, _params_field_structure_hook)

converter.register_structure_hook(
Union[PositionEncodingKind, str, None], lambda obj, _: obj
)

return converter


Expand Down
2 changes: 1 addition & 1 deletion pygls/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def __init__(

self.loop = loop

# TODO: Will move this to `LanguageServer` in next commit
# TODO: Will move this to `LanguageServer` soon
self.lsp = protocol_cls(self, converter_factory()) # type: ignore

def shutdown(self):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.7.9,<4"
lsprotocol = "2023.0.0a3"
lsprotocol = "2023.0.0b1"
typeguard = "^3.0.0"
websockets = {version = "^11.0.3", optional = true}

Expand Down

0 comments on commit 4f417c3

Please sign in to comment.