Sign Up

LspServer

class LspServer()

Synchronous LspServer.

LspServer.__init__

def __init__(impl: AsyncLspServer, bridge: SyncBridge) -> None

LspServer.completions

def completions(uri: str,
                position: LspPosition | Mapping[str, int],
                *,
                context: JsonValue | None = None) -> LspCompletionList

LspServer.did_close

def did_close(uri: str) -> None

LspServer.did_open

def did_open(uri: str) -> None

LspServer.document_symbols

def document_symbols(uri: str) -> list[LspSymbol]

LspServer.stop

def stop() -> None

LspServer.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) -> None

AsyncLspServer.did_open

async def did_open(uri: str) -> None

AsyncLspServer.did_close

async def did_close(uri: str) -> None

AsyncLspServer.completions

async def completions(uri: str,
                      position: LspPosition | Mapping[str, int],
                      *,
                      context: JsonValue | None = None) -> LspCompletionList

AsyncLspServer.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() -> None

LspService

class LspService()

Synchronous LspService.

LspService.__init__

def __init__(impl: AsyncLspService, bridge: SyncBridge) -> None

LspService.start

def start(language_id: str, path_to_project: str) -> LspServer

AsyncLspService

class AsyncLspService()

AsyncLspService.__init__

def __init__(transport: AsyncTransport) -> None

AsyncLspService.start

async def start(language_id: str, path_to_project: str) -> AsyncLspServer

LspPosition: TypeAlias

LspPosition = SymbolPosition

LspRange: TypeAlias

LspRange = SymbolRange

LspLocation: TypeAlias

LspLocation = SymbolLocation

LspSymbol: TypeAlias

LspSymbol = SymbolInfo

LspCompletionItem: TypeAlias

LspCompletionItem = CompletionItem

LspCompletionList: TypeAlias

LspCompletionList = CompletionList