lspcmd

package
v0.0.103 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args Arguments) error

Types

type Arguments

type Arguments struct {
	Log           string
	GoplsLog      string
	GoplsRPCTrace bool
}

type Proxy

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

func NewProxy

func NewProxy(logger *zap.Logger) (p *Proxy)

NewProxy returns a new proxy to send messages from the client to and from gopls, however, init needs to be called before it is usable.

func (*Proxy) Handle

func (p *Proxy) Handle(ctx context.Context, conn *jsonrpc2.Conn, r *jsonrpc2.Request)

Handle implements jsonrpc2.Handler. This function receives from the text editor client, and calls the proxy function to determine how to play it back to the client.

func (*Proxy) Init

func (p *Proxy) Init(ctx context.Context, client, gopls *jsonrpc2.Conn)

Init the proxy.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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