Skip to content
View as Markdown
class LspServer()

Synchronous LspServer.

def __init__(impl: AsyncLspServer, bridge: SyncBridge) -> None
def completions(uri: str,
position: LspPosition | Mapping[str, int],
*,
context: JsonValue | None = None) -> LspCompletionList
def did_close(uri: str) -> None
def did_open(uri: str) -> None
def document_symbols(uri: str) -> list[LspSymbol]
def stop() -> None
def workspace_symbols(query: str) -> list[LspSymbol]
class AsyncLspServer()
def __init__(transport: AsyncTransport, language_id: str, path_to_project: str) -> None
async def did_open(uri: str) -> None
async def did_close(uri: str) -> None
async def completions(uri: str,
position: LspPosition | Mapping[str, int],
*,
context: JsonValue | None = None) -> LspCompletionList
async def document_symbols(uri: str) -> list[LspSymbol]
async def workspace_symbols(query: str) -> list[LspSymbol]
async def stop() -> None
class LspService()

Synchronous LspService.

def __init__(impl: AsyncLspService, bridge: SyncBridge) -> None
def start(language_id: str, path_to_project: str) -> LspServer
class AsyncLspService()
def __init__(transport: AsyncTransport) -> None
async def start(language_id: str, path_to_project: str) -> AsyncLspServer
LspPosition = SymbolPosition
LspRange = SymbolRange
LspLocation = SymbolLocation
LspSymbol = SymbolInfo
LspCompletionItem = CompletionItem
LspCompletionList = CompletionList