Expand description
LSP type definitions based on LSP 3.17 specification
These types map directly to the LSP protocol types.
Structs§
- Client
Info - Completion
Item Info - Simplified completion item
- DidChange
Text Document Params - DidChangeTextDocument parameters
- DidClose
Text Document Params - DidCloseTextDocument parameters
- DidOpen
Text Document Params - DidOpenTextDocument parameters
- Initialize
Params - Initialize parameters
- Initialize
Result - Initialize result
- Json
RpcError - JSON-RPC error
- Json
RpcNotification - JSON-RPC notification for LSP
- Json
RpcRequest - JSON-RPC request for LSP
- Json
RpcResponse - JSON-RPC response for LSP
- Location
Info - Simplified location info for tool output
- LspConfig
- LSP client configuration
- Position
Info - Simplified position info
- Range
Info - Simplified range info
- Reference
Context - Reference context for find references
- Reference
Params - Reference parameters
- Server
Info - Symbol
Info - Simplified symbol info
- Text
Document Content Change Event - Versioned
Text Document Identifier - Workspace
Folder - Workspace
Symbol Params - Workspace symbol parameters
Enums§
- LspAction
Result - 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