handler

package
v0.30.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

A Handler handles LSP requests.

func New

func New(opts ...Option) (*Handler, error)

New constructs a new LSP handler,

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, conn *jsonrpc2.Conn, r *jsonrpc2.Request)

Handle handles LSP requests. It panics if we cannot initialize the workspace.

type Option

type Option func(h *Handler)

Option modifies a handler.

func WithLogger

func WithLogger(l logging.Logger) Option

WithLogger sets the logger for the handler.

Jump to

Keyboard shortcuts

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