server

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNonLocalPath             = errors.New("server only support local filesystem paths")
	ErrFileNotOpened            = errors.New("file not opened")
	ErrFailedToGetPointAtCursor = errors.New("failed to get node at cursor")
)

Functions

func FromTSPoint

func FromTSPoint(point ts.Point) protocol.Position

Types

type Server

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

func NewServer

func NewServer(providerManager *provider.Manager) *Server

func (*Server) HandleInitialize

func (s *Server) HandleInitialize(params protocol.InitializeParams) (protocol.InitializeResult, error)

func (*Server) HandleTextDocumentCodeAction

func (s *Server) HandleTextDocumentCodeAction(params protocol.CodeActionParams) ([]protocol.CodeAction, error)

func (*Server) HandleTextDocumentCompletion

func (s *Server) HandleTextDocumentCompletion(params protocol.CompletionParams) (protocol.CompletionResponse, error)

func (*Server) HandleTextDocumentDefinition

func (s *Server) HandleTextDocumentDefinition(params protocol.DefinitionParams) (response protocol.DefinitionResponse, err error)

func (*Server) HandleTextDocumentDiagnostic

func (s *Server) HandleTextDocumentDiagnostic(params protocol.DocumentDiagnosticParams) (protocol.DocumentDiagnosticReport, error)

func (Server) HandleTextDocumentDidChange

func (s Server) HandleTextDocumentDidChange(params protocol.DidChangeTextDocumentParams) error

func (Server) HandleTextDocumentDidClose

func (s Server) HandleTextDocumentDidClose(params protocol.DidCloseTextDocumentParams) error

func (Server) HandleTextDocumentDidOpen

func (s Server) HandleTextDocumentDidOpen(params protocol.DidOpenTextDocumentParams) error

func (Server) HandleTextDocumentDidSave

func (s Server) HandleTextDocumentDidSave(params protocol.DidSaveTextDocumentParams) error

func (*Server) HandleTextDocumentHover

func (s *Server) HandleTextDocumentHover(params protocol.HoverParams) (protocol.HoverResult, error)

func (Server) Run

func (s Server) Run(ctx context.Context, conn io.ReadWriteCloser) error

Jump to

Keyboard shortcuts

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