Versions in this module Expand all Collapse all v0 v0.3.0 May 26, 2026 v0.2.1 May 26, 2026 v0.1.1 Jun 25, 2026 Changes in this version + var ErrLanguageNotConfigured = &LSPError + var ErrManagerClosed = &LSPError + var ReadOnlyRetryTools = map[string]bool + func ResetConfig() + type Client struct + func (c *Client) Notify(method string, params interface{}) + func (c *Client) Request(method string, params interface{}) (*Response, error) + type Diagnostic struct + Code string + Message string + Range Range + Severity int + Source string + type DiagnosticSeverity int + const SeverityError + const SeverityHint + const SeverityInformation + const SeverityWarning + type LSPClient struct + func NewLSPClient(ctx context.Context, lang string, cfg ServerConfig) (*LSPClient, error) + func (c *LSPClient) Close() error + func (c *LSPClient) Diagnostics(ctx context.Context, uri string) ([]Diagnostic, error) + func (c *LSPClient) DocumentSymbol(ctx context.Context, uri string) ([]SymbolInformation, error) + func (c *LSPClient) FindReferences(ctx context.Context, uri string, line, char int) ([]Location, error) + func (c *LSPClient) GotoDefinition(ctx context.Context, uri string, line, char int) ([]Location, error) + func (c *LSPClient) Language() string + func (c *LSPClient) PrepareRename(ctx context.Context, uri string, line, char int) (*Range, error) + func (c *LSPClient) Rename(ctx context.Context, uri string, line, char int, newName string) (*WorkspaceEdit, error) + type LSPConfig struct + Servers map[string]ServerConfig + func LoadConfig(projectDir string) *LSPConfig + func (c *LSPConfig) LanguageForExtension(ext string) string + func (c *LSPConfig) ServerForFile(filePath string) (string, ServerConfig, bool) + type LSPError struct + Code string + Message string + func (e *LSPError) Error() string + type LSPManager struct + func NewManager(cfg *LSPConfig) *LSPManager + func NewManagerFromProject(projectDir string) *LSPManager + func (m *LSPManager) Close() error + func (m *LSPManager) Config() *LSPConfig + func (m *LSPManager) Execute(ctx context.Context, lang string, readOnly bool, ...) error + func (m *LSPManager) Status() map[string]string + type Location struct + Range Range + URI string + type ManagedClient struct + type Position struct + Character int + Line int + type Range struct + End Position + Start Position + type RenameCapabilities struct + PrepareSupport bool + type Request struct + ID int + JSONRPC string + Method string + Params interface{} + type Response struct + Error *ResponseError + ID int + JSONRPC string + Method string + Result json.RawMessage + type ResponseError struct + Code int + Message string + type ServerConfig struct + Args []string + Command string + Extensions []string + type ServerManager struct + func NewServerManager() *ServerManager + func (m *ServerManager) IsRunning(name string) bool + func (m *ServerManager) List() []string + func (m *ServerManager) Start(name, command string, args ...string) error + func (m *ServerManager) Stop(name string) error + type SymbolInformation struct + ContainerName string + Kind int + Location Location + Name string + type TextEdit struct + NewText string + Range Range + type WorkspaceEdit struct + Changes map[string][]TextEdit