lsp

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge interface {
	Call(role Role, call Request, callback Callback)
	Notify(role Role, notification Request) error
}

type Callback

type Callback func(Response)

type ContentChange

type ContentChange struct {
	Range common.Range
	Text  string
}

type Json

type Json = *ast.Node

type Request

type Request struct {
	Method string
	Params json.RawMessage
}

type Response

type Response struct {
	Err    error
	Result json.RawMessage
}

type Role

type Role string
const (
	Client Role = "client"
	Gopls  Role = "gopls"
)

func (Role) Revert

func (r Role) Revert() Role

type Router

type Router = *router

func NewRouter

func NewRouter(bridge Bridge) Router

func (Router) Call

func (r Router) Call(role Role, call Request, cb Callback)

func (Router) Notification

func (r Router) Notification(role Role, n Request)

Jump to

Keyboard shortcuts

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