server

package
v1.1303.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Package server implements the server functionality

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, triggerSource analytics.TriggerSource)

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.LSPCodeAction) (*types.LSPCodeAction, error)

func ResolveCodeActionHandler

func ResolveCodeActionHandler(c *config.Config, service *codeaction.CodeActionsService, _ 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.LSPCodeAction, 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
Package notification implements the scan notifications
Package notification implements the scan notifications

Jump to

Keyboard shortcuts

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