Versions in this module Expand all Collapse all v1 v1.7.3 Jun 11, 2026 v0 v0.1.2 Jun 11, 2026 v0.1.1 Jun 11, 2026 v0.1.0 Jun 11, 2026 Changes in this version + var DefaultServers = []ServerSpec + func LanguageForFile(path string) string + type Client struct + func Start(binary string, args []string, lang, rootURI string) (*Client, error) + func (c *Client) Call(method string, params any, result any, timeout time.Duration) error + func (c *Client) Close() error + func (c *Client) Definition(uri string, pos Position) ([]Location, error) + func (c *Client) DefinitionRaw(uri string, pos Position) (string, error) + func (c *Client) DidChange(uri string, version int, changes []TextDocumentContentChangeEvent) error + func (c *Client) DidClose(uri string) error + func (c *Client) DidOpen(doc TextDocumentItem) error + func (c *Client) Format(uri string) ([]TextEdit, error) + func (c *Client) Hover(uri string, pos Position) (*Hover, error) + func (c *Client) Lang() string + func (c *Client) Notify(method string, params any) error + func (c *Client) References(uri string, pos Position, includeDecl bool) ([]Location, error) + func (c *Client) Rename(uri string, pos Position, newName string) (*WorkspaceEdit, error) + func (c *Client) RootURI() string + func (c *Client) SetNotificationHandler(fn func(method string, params json.RawMessage)) + func (c *Client) Symbols(uri string) ([]DocumentSymbol, error) + type ClientCapabilities struct + TextDocument map[string]any + Workspace map[string]any + type Diagnostic struct + Code any + Message string + Range Range + Severity *int + Source string + type DocumentSymbol struct + Children []DocumentSymbol + Deprecated *bool + Detail string + Kind int + Name string + Range Range + SelectionRange Range + Tags []any + type Hover struct + Contents any + Range *Range + type InitializeParams struct + Capabilities ClientCapabilities + ClientInfo map[string]string + ProcessID int + RootURI string + type InitializeResult struct + Capabilities ServerCapabilities + ServerInfo map[string]string + type Location struct + Range Range + URI string + type LocationLink struct + OriginSelectionRange *Range + TargetRange Range + TargetSelectionRange Range + TargetURI string + type Manager struct + func NewManager() *Manager + func (m *Manager) Close() + func (m *Manager) Get(lang, rootURI string) (*Client, error) + type Position struct + Character int + Line int + type PublishDiagnosticsParams struct + Diagnostics []Diagnostic + URI string + type Range struct + End Position + Start Position + type RenameParams struct + NewName string + Position Position + TextDocument TextDocumentIdentifier + type Response struct + Error *ResponseError + ID any + JSONRPC string + Method string + Params json.RawMessage + Result json.RawMessage + type ResponseError struct + Code int + Data any + Message string + type ServerCapabilities struct + CodeActionProvider any + CompletionProvider any + DefinitionProvider any + DocumentFormattingProvider any + DocumentSymbolProvider any + HoverProvider any + ReferencesProvider any + RenameProvider any + TextDocumentSync any + type ServerSpec struct + Aliases []string + Args []string + Binary string + FileExts []string + Language string + func DetectAvailable() []ServerSpec + type SymbolInformation struct + ContainerName string + Deprecated *bool + Kind int + Location Location + Name string + type TextDocumentContentChangeEvent struct + Range *Range + RangeLength *int + Text string + type TextDocumentIdentifier struct + URI string + type TextDocumentItem struct + LanguageID string + Text string + URI string + Version int + type TextDocumentPositionParams struct + Position Position + TextDocument TextDocumentIdentifier + type TextEdit struct + NewText string + Range Range + type VersionedTextDocumentIdentifier struct + URI string + Version int + type WorkspaceEdit struct + Changes map[string][]TextEdit