mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 18:16:10 +00:00
Rename SolidLanguageServerHandler -> LanguageServerProcess
This commit is contained in:
1 parent
fafebdc205
commit
5b18747ece
3 files changed
+8
-9
No files matched your search
+3
-3
@@ -24,7 +24,7 @@ from serena.util.file_system import match_path
|
||||
from solidlsp import ls_types
|
||||
from solidlsp.ls_config import Language, LanguageServerConfig
|
||||
from solidlsp.ls_exceptions import SolidLSPException
|
||||
from solidlsp.ls_handler import SolidLanguageServerHandler
|
||||
from solidlsp.ls_handler import LanguageServerProcess
|
||||
from solidlsp.ls_types import UnifiedSymbolInformation
|
||||
from solidlsp.ls_utils import FileUtils, PathUtils, TextUtils
|
||||
from solidlsp.lsp_protocol_handler import lsp_types
|
||||
@@ -470,7 +470,7 @@ class SolidLanguageServer(ABC):
|
||||
self._dependency_provider = self._create_dependency_provider()
|
||||
process_launch_info = self._create_process_launch_info()
|
||||
log.debug(f"Creating language server instance with {language_id=} and process launch info: {process_launch_info}")
|
||||
self.server = SolidLanguageServerHandler(
|
||||
self.server = LanguageServerProcess(
|
||||
process_launch_info,
|
||||
language=self.language,
|
||||
determine_log_level=self._determine_log_level,
|
||||
@@ -2152,7 +2152,7 @@ class SolidLanguageServer(ABC):
|
||||
return self
|
||||
|
||||
@property
|
||||
def handler(self) -> SolidLanguageServerHandler:
|
||||
def handler(self) -> LanguageServerProcess:
|
||||
"""Access the underlying language server handler.
|
||||
|
||||
Useful for advanced operations like sending custom commands
|
||||
|
||||
@@ -93,11 +93,10 @@ class Request(ToStringMixin):
|
||||
raise e
|
||||
|
||||
|
||||
class SolidLanguageServerHandler:
|
||||
class LanguageServerProcess:
|
||||
"""
|
||||
This class provides the implementation of Python client for the Language Server Protocol.
|
||||
A class that launches the language server and communicates with it
|
||||
using the Language Server Protocol (LSP).
|
||||
Represents a language server process and provides methods for communicating with it using the
|
||||
Language Server Protocol (LSP).
|
||||
|
||||
It provides methods for sending requests, responses, and notifications to the server
|
||||
and for registering handlers for requests and notifications from the server.
|
||||
|
||||
@@ -3,11 +3,11 @@ from typing import TYPE_CHECKING, Any, Union
|
||||
from solidlsp.lsp_protocol_handler import lsp_types
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .ls_handler import SolidLanguageServerHandler
|
||||
from .ls_handler import LanguageServerProcess
|
||||
|
||||
|
||||
class LanguageServerRequest:
|
||||
def __init__(self, handler: "SolidLanguageServerHandler"):
|
||||
def __init__(self, handler: "LanguageServerProcess"):
|
||||
self.handler = handler
|
||||
|
||||
def _send_request(self, method: str, params: Any | None = None) -> Any:
|
||||
|
||||
Reference in new issue
Block a user