Versions in this module Expand all Collapse all v1 v1.0.0 Aug 30, 2026 Changes in this version + const SupportedVersion + func OffsetForPosition(contents []byte, position Position) (int, error) + type Capabilities struct + CallHierarchy bool + CodeAction bool + Definition bool + Diagnostics bool + DocumentSymbol bool + Formatting bool + Hover bool + Implementation bool + References bool + Rename bool + TypeDefinition bool + WorkspaceSymbol bool + type Client struct + func Start(ctx context.Context, config Config) (*Client, error) + func (c *Client) Capabilities() Capabilities + func (c *Client) Close(ctx context.Context) error + func (c *Client) Notify(method string, params any) error + func (c *Client) Request(ctx context.Context, method string, params, result any) error + func (c *Client) Terminated() bool + type Config struct + Args []string + ClientVersion string + Command string + InitializeTimeout time.Duration + MaxFrame int + Workspace string + type Installation struct + Bundled bool + Path string + Version string + func Locate(ctx context.Context, hostExecutable, override string) (Installation, error) + type Manager struct + func NewManager(lifecycle context.Context, config Config) (*Manager, error) + func (m *Manager) Capabilities() (Capabilities, error) + func (m *Manager) Close(ctx context.Context) error + func (m *Manager) Notify(method string, params any) error + func (m *Manager) Request(ctx context.Context, method string, params, result any, idempotent bool) error + func (m *Manager) Restart(ctx context.Context) error + type Position struct + Character int + Line int + func PositionForOffset(contents []byte, offset int) (Position, error)