Help us shape the future of Go! Take the 2026 Go Developer Survey

lsp

package
v0.1.52 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package lsp implements a minimal stdio LSP server for ghat. It publishes diagnostics for GitHub Actions workflow files (static, instant) and provides on-demand "Audit dependency" code actions for all supported manifest kinds (go.mod, package.json, requirements.txt, Cargo.toml, Gemfile, cpanfile, .pre-commit-config.yaml, GHA workflows).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a stateful stdio LSP server.

func New

func New(token string, cache *core.Cache) *Server

New creates a Server that uses the given GitHub token (may be empty) and optional disk cache for API responses.

func (*Server) Run

func (s *Server) Run() error

Run reads JSON-RPC messages from stdin and writes responses to stdout until stdin is closed or an unrecoverable I/O error occurs.

Jump to

Keyboard shortcuts

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