lsp

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVar added in v0.0.12

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

func NewConn added in v0.0.16

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

func NewDocumentsStore added in v0.0.11

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

func ParserToLspPosition added in v0.0.16

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 added in v0.0.16

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

func NewLsObjectStream added in v0.0.16

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

func (*LsObjectStream) Close added in v0.0.16

func (s *LsObjectStream) Close() error

func (*LsObjectStream) ReadMessage added in v0.0.16

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

func (*LsObjectStream) WriteMessage added in v0.0.16

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