File tree Expand file tree Collapse file tree 6 files changed +17
-3
lines changed
Expand file tree Collapse file tree 6 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1313Example:
1414 ```python
1515 import anyio
16- from lsp_client.clients.pyrefly import PyreflyClient, PyreflyLocalServer
17- from lsp_client import Position
16+ from lsp_client import PyreflyClient, Position
1817
1918 async def main():
20- async with PyreflyClient(server=PyreflyLocalServer() ) as client:
19+ async with PyreflyClient() as client:
2120 refs = await client.request_references(
2221 file_path="src/main.py",
2322 position=Position(21, 19),
@@ -37,7 +36,11 @@ async def main():
3736from loguru import logger
3837
3938from .client .abc import LSPClient
39+ from .clients import PythonClient , RustClient , TypeScriptClient
40+ from .clients .pyrefly import PyreflyClient
4041from .server .abc import LSPServer
42+ from .server .container import ContainerServer
43+ from .server .local import LocalServer
4144from .utils .types import * # noqa: F403
4245
4346logger .disable (__name__ )
@@ -58,8 +61,14 @@ def disable_logging() -> None:
5861}
5962
6063__all__ = [
64+ "ContainerServer" ,
6165 "LSPClient" ,
6266 "LSPServer" ,
67+ "LocalServer" ,
68+ "PyreflyClient" ,
69+ "PythonClient" ,
70+ "RustClient" ,
71+ "TypeScriptClient" ,
6372 "disable_logging" ,
6473 "enable_logging" ,
6574]
Original file line number Diff line number Diff line change 1313__all__ = [
1414 "WithNotifyDidChangeConfiguration" ,
1515 "WithNotifyTextDocumentSynchronize" ,
16+ "capabilities" ,
1617]
Original file line number Diff line number Diff line change 4040 "WithRequestTypeDefinition" ,
4141 "WithRequestTypeHierarchy" ,
4242 "WithRequestWorkspaceSymbol" ,
43+ "capabilities" ,
4344]
Original file line number Diff line number Diff line change 1919 "WithReceiveLogTrace" ,
2020 "WithReceivePublishDiagnostics" ,
2121 "WithReceiveShowMessage" ,
22+ "capabilities" ,
2223]
Original file line number Diff line number Diff line change 1919 "WithRespondShowDocumentRequest" ,
2020 "WithRespondShowMessageRequest" ,
2121 "WithRespondWorkspaceFoldersRequest" ,
22+ "capabilities" ,
2223]
Original file line number Diff line number Diff line change 1919TypeScriptClient = TypescriptClient
2020
2121__all__ = [
22+ "PyreflyClient" ,
2223 "PythonClient" ,
2324 "RustClient" ,
2425 "TypeScriptClient" ,
You can’t perform that action at this time.
0 commit comments