Sign Up

LspServer

class LspServer()

LspServer.__init__

def __init__(transport: AsyncTransport, language_id: str, path_to_project: str) -> None

LspServer.did_open

async def did_open(uri: str) -> None

LspServer.did_close

async def did_close(uri: str) -> None

LspServer.completions

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

LspServer.document_symbols

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

LspServer.workspace_symbols

async def workspace_symbols(query: str) -> list[LspSymbol]

LspServer.stop

async def stop() -> None

LspService

class LspService()

LspService.__init__

def __init__(transport: AsyncTransport) -> None

LspService.start

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

SyncLspServer

class SyncLspServer()

Synchronous LspServer.

SyncLspServer.__init__

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

SyncLspServer.completions

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

SyncLspServer.did_close

def did_close(uri: str) -> None

SyncLspServer.did_open

def did_open(uri: str) -> None

SyncLspServer.document_symbols

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

SyncLspServer.stop

def stop() -> None

SyncLspServer.workspace_symbols

def workspace_symbols(query: str) -> list[LspSymbol]

SyncLspService

class SyncLspService()

Synchronous LspService.

SyncLspService.__init__

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

SyncLspService.start

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

LspPosition: TypeAlias

LspPosition = SymbolPosition

LspRange: TypeAlias

LspRange = SymbolRange

LspLocation: TypeAlias

LspLocation = SymbolLocation

LspSymbol: TypeAlias

LspSymbol = SymbolInfo

LspCompletionItem: TypeAlias

LspCompletionItem = CompletionItem

LspCompletionList: TypeAlias

LspCompletionList = CompletionList