mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-14 04:16:34 +00:00
Remove duplicate type RenameParams
This commit is contained in:
1 parent
c575c418fb
commit
a52756be46
2 files changed
+3
-13
No files matched your search
+3
-2
@@ -31,7 +31,8 @@ from solidlsp.ls_utils import FileUtils, PathUtils, TextUtils
|
||||
from solidlsp.lsp_protocol_handler import lsp_types
|
||||
from solidlsp.lsp_protocol_handler import lsp_types as LSPTypes
|
||||
from solidlsp.lsp_protocol_handler.lsp_constants import LSPConstants
|
||||
from solidlsp.lsp_protocol_handler.lsp_types import Definition, DefinitionParams, DocumentSymbol, LocationLink, SymbolInformation
|
||||
from solidlsp.lsp_protocol_handler.lsp_types import Definition, DefinitionParams, DocumentSymbol, LocationLink, SymbolInformation, \
|
||||
RenameParams
|
||||
from solidlsp.lsp_protocol_handler.server import (
|
||||
LSPError,
|
||||
ProcessLaunchInfo,
|
||||
@@ -1860,7 +1861,7 @@ class SolidLanguageServer(ABC):
|
||||
:param new_name: The new name for the symbol
|
||||
:return: A WorkspaceEdit containing the changes needed to rename the symbol, or None if rename is not supported
|
||||
"""
|
||||
params = ls_types.RenameParams(
|
||||
params = RenameParams(
|
||||
textDocument=ls_types.TextDocumentIdentifier(
|
||||
uri=pathlib.Path(os.path.join(self.repository_root_path, relative_file_path)).as_uri()
|
||||
),
|
||||
|
||||
@@ -354,17 +354,6 @@ class WorkspaceEdit(TypedDict):
|
||||
""" Document changes array for versioned edits. """
|
||||
|
||||
|
||||
class RenameParams(TypedDict):
|
||||
"""The parameters of a RenameRequest."""
|
||||
|
||||
textDocument: TextDocumentIdentifier
|
||||
""" The document to rename. """
|
||||
position: Position
|
||||
""" The position at which this request was sent. """
|
||||
newName: str
|
||||
""" The new name of the symbol. """
|
||||
|
||||
|
||||
class Diagnostic(TypedDict):
|
||||
"""Diagnostic information for a text document."""
|
||||
|
||||
|
||||
Reference in new issue
Block a user