Skip to main content

Module types

Module types 

Source
Expand description

LSP type definitions based on LSP 3.17 specification

These types map directly to the LSP protocol types.

Structs§

ClientInfo
CompletionItemInfo
Simplified completion item
DidChangeTextDocumentParams
DidChangeTextDocument parameters
DidCloseTextDocumentParams
DidCloseTextDocument parameters
DidOpenTextDocumentParams
DidOpenTextDocument parameters
InitializeParams
Initialize parameters
InitializeResult
Initialize result
JsonRpcError
JSON-RPC error
JsonRpcNotification
JSON-RPC notification for LSP
JsonRpcRequest
JSON-RPC request for LSP
JsonRpcResponse
JSON-RPC response for LSP
LocationInfo
Simplified location info for tool output
LspConfig
LSP client configuration
PositionInfo
Simplified position info
RangeInfo
Simplified range info
ReferenceContext
Reference context for find references
ReferenceParams
Reference parameters
ServerInfo
SymbolInfo
Simplified symbol info
TextDocumentContentChangeEvent
VersionedTextDocumentIdentifier
WorkspaceFolder
WorkspaceSymbolParams
Workspace symbol parameters

Enums§

LspActionResult
LSP action result - unified response type for the tool

Functions§

detect_language_from_path
Detect language from file extension
ensure_server_installed
Ensure a language server binary is available, installing it if possible.
get_language_server_config
Known language server configurations