server

package
v0.29.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Server)

Option provides a way to override default behavior of the Server.

func WithLogger

func WithLogger(l logging.Logger) Option

WithLogger overrides the default logging.Logger for the Server with the supplied logging.Logger.

type Server

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

Server services incoming LSP requests.

func New

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

New returns a new Server.

func (*Server) DidChange

func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams)

DidChange handles calls to DidChange.

func (*Server) DidChangeWatchedFiles

func (s *Server) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams)

DidChangeWatchedFiles handles calls to DidChangeWatchedFiles.

func (*Server) DidOpen

func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams)

DidOpen handles calls to DidOpen.

func (*Server) DidSave

func (s *Server) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams)

DidSave handles calls to DidSave.

func (*Server) Initialize

func (s *Server) Initialize(ctx context.Context, conn *jsonrpc2.Conn, id jsonrpc2.ID, params *protocol.InitializeParams)

Initialize handles calls to Initialize.

Jump to

Keyboard shortcuts

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