Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2026 Changes in this version + func EditNotebookCell(path string, index int, cellType string, source string) error + func InferLanguageID(path string) string + func LSPActionRequiresDocument(action string) (bool, error) + func ModulePath(workspace string) (string, error) + func NormalizeLSPAction(action string) (string, error) + func NormalizeNotebookCellType(cellType string) (string, error) + func NormalizeNotebookEditMode(mode string) (string, error) + func ResolveNotebookEditIndex(path string, cellIndex *int, cellID string, mode string) (int, error) + type CallHierarchyCall struct + From CallHierarchyItem + FromRanges []LSPRange + To CallHierarchyItem + func IncomingCalls(workspace string, symbol string, limit int) ([]CallHierarchyCall, error) + func OutgoingCalls(workspace string, symbol string, limit int) ([]CallHierarchyCall, error) + type CallHierarchyItem struct + Kind string + Name string + Path string + Range LSPRange + SelectionRange LSPRange + func PrepareCallHierarchy(workspace string, symbol string, relPath string, line int, character int) ([]CallHierarchyItem, error) + type CodeLens struct + Command CodeLensCommand + Data map[string]any + Kind string + Path string + Range LSPRange + Symbol string + func CodeLensAtPosition(workspace string, relPath string, line int, character int) (CodeLens, bool, error) + func CodeLenses(workspace string, relPath string, limit int) ([]CodeLens, error) + type CodeLensCommand struct + Arguments []any + Command string + Title string + type ColorPresentation struct + Color DocumentColor + Label string + func ColorPresentations(workspace string, relPath string, line int, character int) ([]ColorPresentation, bool, error) + type Completion struct + Detail string + Kind string + Label string + Line int + Path string + func Completions(workspace string, prefix string, limit int) ([]Completion, error) + type Diagnostic struct + Action string + Column int + Line int + Message string + Package string + Path string + Test string + func GoDiagnostics(ctx context.Context, workspace string, patterns []string) ([]Diagnostic, error) + func ParseGoTestJSON(workspace string, data []byte) ([]Diagnostic, error) + type DocumentColor struct + Color LSPColor + Path string + Range LSPRange + Text string + func DocumentColors(workspace string, relPath string, limit int) ([]DocumentColor, error) + type DocumentHighlight struct + Kind int + Path string + Range LSPRange + Text string + func DocumentHighlights(workspace string, symbol string, relPath string, limit int) ([]DocumentHighlight, error) + type DocumentLink struct + Path string + Range LSPRange + Target string + Tooltip string + func DocumentLinkAtPosition(workspace string, relPath string, line int, character int) (DocumentLink, bool, error) + func DocumentLinks(workspace string, relPath string, limit int) ([]DocumentLink, error) + type FixAllResult struct + Actions []string + Bytes int + Changed bool + Content string + Kind string + OrganizeImports *OrganizeImportsResult + Path string + func FixAllGoFile(workspace string, requested string, write bool) (FixAllResult, error) + type FoldingRange struct + EndLine int + Kind string + Path string + StartLine int + func FoldingRanges(workspace string, relPath string, limit int) ([]FoldingRange, error) + type FormatResult struct + Bytes int + Changed bool + Content string + Kind string + Path string + func FormatGoFile(workspace string, requested string, write bool) (FormatResult, error) + type Hover struct + Found bool + Kind string + Line int + Path string + Snippet []string + Symbol string + func HoverInfo(workspace string, symbol string, contextLines int) (Hover, error) + type InlayHint struct + Kind string + Label string + PaddingRight bool + Path string + Position LSPPosition + Tooltip string + func InlayHintAtPosition(workspace string, relPath string, line int, character int) (InlayHint, bool, error) + func InlayHints(workspace string, relPath string, limit int) ([]InlayHint, error) + type InlineValue struct + Kind string + Name string + Path string + Range LSPRange + Text string + Value string + func InlineValues(workspace string, relPath string, line int, character int, limit int) ([]InlineValue, error) + type LSPActionInfo struct + Aliases []string + Description string + Method string + Name string + RequiresDocument bool + RequiresPosition bool + func SupportedLSPActions() []LSPActionInfo + type LSPCandidate struct + Args []string + Command string + Description string + Installed bool + Language string + Path string + func DefaultLSPCandidates() []LSPCandidate + type LSPCodeDescription struct + Href string + type LSPColor struct + Alpha float64 + Blue float64 + Green float64 + Red float64 + type LSPDiagnostic struct + Code any + CodeDescription *LSPCodeDescription + Data any + Message string + Range LSPRange + RelatedInformation []LSPDiagnosticRelatedInformation + Severity int + Source string + Tags []int + type LSPDiagnosticRelatedInformation struct + Location LSPLocation + Message string + type LSPFileEdit struct + AbsPath string + ActionKind string + ActionTitle string + Changed bool + Content string + Path string + TextEdits int + type LSPLocation struct + Range LSPRange + URI string + type LSPNotification struct + Method string + Params any + type LSPPosition struct + Character int + Line int + type LSPQueryRequest struct + Action string + Apply bool + Arguments []any + Character int + CodeActionTitle string + Line int + NewName string + Path string + Query string + type LSPQueryResult struct + Action string + Applied bool + Changed bool + Content string + Diagnostics []LSPDiagnostic + Edits []LSPFileEdit + FileEdits int + Kind string + Language string + Method string + Notifications []LSPNotification + Path string + Result any + TextEdits int + type LSPRange struct + End LSPPosition + Start LSPPosition + type LSPServer struct + Command string + Language string + StartedAt time.Time + TaskID string + Workspace string + type LSPServerStatus struct + Task background.Task + type LSPStore struct + ConfigHome string + Workspace string + func NewLSPStore(configHome, workspace string) LSPStore + func (s LSPStore) List() ([]LSPServerStatus, error) + func (s LSPStore) Query(ctx context.Context, language string, request LSPQueryRequest) (LSPQueryResult, error) + func (s LSPStore) Start(language string, commandArgs []string) (LSPServerStatus, error) + func (s LSPStore) Status(language string) (LSPServerStatus, error) + func (s LSPStore) Stop(language string) (LSPServerStatus, error) + type LinkedEditingRange struct + Path string + Ranges []LSPRange + WordPattern string + func LinkedEditingRanges(workspace string, symbol string, relPath string, limit int) (LinkedEditingRange, error) + type MapEntry struct + Depth int + Path string + Type string + func CodeMap(workspace string, depthLimit int, limit int) ([]MapEntry, error) + type Moniker struct + Identifier string + Kind string + Scheme string + Unique string + func Monikers(workspace string, symbol string) ([]Moniker, error) + type Notebook struct + Cells []NotebookCell + type NotebookCell struct + CellType string + Source []string + type NotebookEditOptions struct + CellType string + Index int + Mode string + Source string + type NotebookEditResult struct + CellCount int + CellID string + CellType string + Index int + Kind string + Language string + Mode string + Path string + SourceLines int + func EditNotebook(path string, options NotebookEditOptions) (NotebookEditResult, error) + type NotebookReadCell struct + CellID string + CellType string + ExecutionCount any + Index int + OutputCount int + Outputs any + Source string + type NotebookReadOptions struct + CellIndex *int + IncludeOutputs bool + Limit int + type NotebookReadResult struct + CellCount int + Cells []NotebookReadCell + Kind string + Language string + Path string + Truncated bool + func ReadNotebook(path string, options NotebookReadOptions) (NotebookReadResult, error) + type OrganizeImportsResult struct + DuplicateImports []string + ImportCount int + MissingImportInference bool + MissingImportInferenceNote string + RemovedImports []string + func OrganizeGoImports(workspace string, requested string, write bool) (OrganizeImportsResult, error) + type Reference struct + Line int + Path string + Symbol string + Text string + func References(workspace string, symbol string, limit int) ([]Reference, error) + type RenameFileEdit struct + Changed bool + Content string + Edits []RenameTextEdit + Path string + TextEdits int + type RenamePrepareResult struct + CurrentName string + Found bool + Path string + Placeholder string + Range LSPRange + Symbol string + func PrepareRenameAtPosition(workspace string, relPath string, line int, character int) (RenamePrepareResult, error) + type RenameResult struct + Edits []RenameFileEdit + FileEdits int + Found bool + NewName string + Symbol string + TextEdits int + func RenameSymbol(workspace string, symbol string, newName string, limit int) (RenameResult, error) + type RenameTextEdit struct + NewText string + Range LSPRange + type ResolvedSymbol struct + Hover Hover + Symbol Symbol + func ResolveWorkspaceSymbol(workspace string, query string) (ResolvedSymbol, bool, error) + type SelectionRange struct + Kind string + Path string + Range LSPRange + func SelectionRanges(workspace string, relPath string, line int, character int, limit int) ([]SelectionRange, error) + type SemanticToken struct + Path string + Range LSPRange + Text string + TokenType int + Type string + type SemanticTokens struct + Data []int + Legend []string + Path string + ResultID string + Tokens []SemanticToken + func SemanticTokensForDocument(workspace string, relPath string, limit int) (SemanticTokens, error) + func SemanticTokensForLine(workspace string, relPath string, line int, limit int) (SemanticTokens, error) + type SemanticTokensDelta struct + Edits []any + Path string + PreviousResultID string + ResultID string + Tokens SemanticTokens + func SemanticTokensDeltaForDocument(workspace string, relPath string, previousResultID string, limit int) (SemanticTokensDelta, error) + type Signature struct + Documentation string + Label string + Parameters []SignatureArgument + type SignatureArgument struct + Label string + Name string + Type string + type SignatureHelp struct + ActiveParameter int + ActiveSignature int + CallRange LSPRange + Found bool + Function string + Parameters []SignatureArgument + Path string + Signatures []Signature + func SignatureHelpAtPosition(workspace string, relPath string, line int, character int) (SignatureHelp, error) + type Symbol struct + Kind string + Line int + Name string + Path string + func Definition(workspace string, symbol string) (Symbol, bool, error) + func GoSymbols(workspace string) ([]Symbol, error) + func WorkspaceSymbols(workspace string, query string, limit int) ([]Symbol, error) + type TypeHierarchyItem struct + Detail string + Kind string + Name string + Path string + Range LSPRange + SelectionRange LSPRange + func PrepareTypeHierarchy(workspace string, symbol string, relPath string, line int, character int) ([]TypeHierarchyItem, error) + func TypeHierarchySubtypes(workspace string, symbol string, limit int) ([]TypeHierarchyItem, error) + func TypeHierarchySupertypes(workspace string, symbol string, limit int) ([]TypeHierarchyItem, error)