lsp

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVar

func CreateVar(diagnostic analysis.UnboundVariable, program parser.Program) protocol.TextEdit

func NewConn

func NewConn(objStream jsonrpc2.MessageStream) *jsonrpc2.Conn

func NewDocumentsStore

func NewDocumentsStore[Doc any]() documentStore[Doc]

func ParserToLspPosition

func ParserToLspPosition(p parser.Position) protocol.Position

func RunServer

func RunServer() error

Types

type InMemoryDocument

type InMemoryDocument struct {
	Text        string
	CheckResult analysis.CheckResult
}

type LsObjectStream

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

func NewLsObjectStream

func NewLsObjectStream(in io.ReadCloser, out io.WriteCloser) LsObjectStream

func (*LsObjectStream) Close

func (s *LsObjectStream) Close() error

func (*LsObjectStream) ReadMessage

func (s *LsObjectStream) ReadMessage() (jsonrpc2.Message, error)

func (*LsObjectStream) WriteMessage

func (s *LsObjectStream) WriteMessage(obj jsonrpc2.Message) error

type State

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

Jump to

Keyboard shortcuts

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