server

package
v1.1295.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeSettings

func InitializeSettings(c *config.Config, settings types.Settings)

func Start

func Start(c *config.Config)

func UpdateSettings

func UpdateSettings(c *config.Config, settings types.Settings)

Types

type RPCLogger

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

func (RPCLogger) LogRequest

func (r RPCLogger) LogRequest(_ context.Context, req *jrpc2.Request)

func (RPCLogger) LogResponse

func (r RPCLogger) LogResponse(_ context.Context, rsp *jrpc2.Response)

type ResolveHandler

type ResolveHandler func(context.Context, types.CodeAction) (*types.CodeAction, error)

func ResolveCodeActionHandler

func ResolveCodeActionHandler(c *config.Config, service *codeaction.CodeActionsService, server types.Server) ResolveHandler

ResolveCodeActionHandler returns a jrpc2.Handler that can be used to handle the "codeAction/resolve" LSP method

type TextDocumentCodeActionHandler

type TextDocumentCodeActionHandler func(context.Context, types.CodeActionParams) ([]types.CodeAction, error)

func GetCodeActionHandler

func GetCodeActionHandler(c *config.Config) TextDocumentCodeActionHandler

GetCodeActionHandler returns a jrpc2.Handler that can be used to handle the "textDocument/codeAction" LSP method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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