LspServer
class LspServer()Synchronous LspServer.
LspServer.__init__
def __init__(impl: AsyncLspServer, bridge: SyncBridge) -> NoneLspServer.close_document
def close_document(uri: str) -> NoneNotify the server that the document at uri was closed.
LspServer.completions
def completions(uri: str,
position: LspPosition | Mapping[str, int],
*,
context: JsonValue | None = None) -> LspCompletionListLspServer.document_symbols
def document_symbols(uri: str) -> list[LspSymbol]LspServer.open_document
def open_document(uri: str) -> NoneNotify the server that the document at uri was opened.
LspServer.stop
def stop() -> NoneLspServer.workspace_symbols
def workspace_symbols(query: str) -> list[LspSymbol]AsyncLspServer
class AsyncLspServer()AsyncLspServer.__init__
def __init__(transport: AsyncTransport, language_id: str, path_to_project: str) -> NoneAsyncLspServer.open_document
async def open_document(uri: str) -> NoneNotify the server that the document at uri was opened.
AsyncLspServer.close_document
async def close_document(uri: str) -> NoneNotify the server that the document at uri was closed.
AsyncLspServer.completions
async def completions(uri: str,
position: LspPosition | Mapping[str, int],
*,
context: JsonValue | None = None) -> LspCompletionListAsyncLspServer.document_symbols
async def document_symbols(uri: str) -> list[LspSymbol]AsyncLspServer.workspace_symbols
async def workspace_symbols(query: str) -> list[LspSymbol]AsyncLspServer.stop
async def stop() -> NoneLspService
class LspService()Synchronous LspService.
LspService.__init__
def __init__(impl: AsyncLspService, bridge: SyncBridge) -> NoneLspService.start
def start(language_id: str, path_to_project: str) -> LspServerAsyncLspService
class AsyncLspService()AsyncLspService.__init__
def __init__(transport: AsyncTransport) -> NoneAsyncLspService.start
async def start(language_id: str, path_to_project: str) -> AsyncLspServerLspPosition: TypeAlias
LspPosition = SymbolPositionLspRange: TypeAlias
LspRange = SymbolRangeLspLocation: TypeAlias
LspLocation = SymbolLocationLspSymbol: TypeAlias
LspSymbol = SymbolInfoLspCompletionItem: TypeAlias
LspCompletionItem = CompletionItemLspCompletionList: TypeAlias
LspCompletionList = CompletionList