lsp

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package lsp implements the LSPTool — lets Claude query a Language Server for hover info, definitions, references, and diagnostics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	Manager managerIface
}

Tool is the LSP tool that exposes hover, definition, references, and diagnostics operations to the agent.

func New

func New(mgr managerIface) *Tool

New creates a new LSPTool backed by the given Manager.

func (*Tool) Description

func (*Tool) Description() string

Description implements tool.Tool.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, raw json.RawMessage) (tool.Result, error)

Execute implements tool.Tool.

func (*Tool) InputSchema

func (*Tool) InputSchema() json.RawMessage

InputSchema implements tool.Tool.

func (*Tool) IsConcurrencySafe

func (*Tool) IsConcurrencySafe(json.RawMessage) bool

IsConcurrencySafe: LSP requests are safe to issue concurrently from Claude's perspective (the server serialises them internally).

func (*Tool) IsReadOnly

func (*Tool) IsReadOnly(json.RawMessage) bool

IsReadOnly: LSP queries do not modify files.

func (*Tool) Name

func (*Tool) Name() string

Name implements tool.Tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL