Skip to content

Commit 2e6e517

Browse files
authored
breaking: remove api decorators (#163)
1 parent cc32947 commit 2e6e517

5 files changed

Lines changed: 0 additions & 132 deletions

File tree

docs/source/api_handler.rst

Lines changed: 0 additions & 30 deletions
This file was deleted.

lsp_utils/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
from __future__ import annotations
22

33
from ._client_handler import ClientHandler
4-
from ._client_handler import notification_handler
5-
from ._client_handler import request_handler
64
from ._util import download_file
75
from ._util import extract_archive
86
from .api_wrapper_interface import ApiWrapperInterface
@@ -35,7 +33,5 @@
3533
'UvVenvManager',
3634
'download_file',
3735
'extract_archive',
38-
'notification_handler',
39-
'request_handler',
4036
'rmtree_ex',
4137
]
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
from __future__ import annotations
22

33
from .abstract_plugin import ClientHandler
4-
from .api_decorator import notification_handler
5-
from .api_decorator import request_handler
64

75
__all__ = [
86
'ClientHandler',
9-
'notification_handler',
10-
'request_handler',
117
]

lsp_utils/_client_handler/abstract_plugin.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from ..api_wrapper_interface import ApiRequestHandler
55
from ..api_wrapper_interface import ApiWrapperInterface
66
from ..server_resource_interface import ServerStatus
7-
from .api_decorator import register_decorated_handlers
87
from .interface import ClientHandlerInterface
98
from abc import ABC
109
from functools import partial
@@ -172,5 +171,4 @@ def cleanup(cls) -> None:
172171
def __init__(self, *args: Any, **kwargs: Any) -> None:
173172
super().__init__(*args, **kwargs)
174173
api = ApiWrapper(ref(self))
175-
register_decorated_handlers(self, api)
176174
self.on_ready(api)

lsp_utils/_client_handler/api_decorator.py

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)