server

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitializeParams

type InitializeParams struct {
	ClientInfo *protocol.ClientInfo `json:"clientInfo"`
}

type Server

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

func New

func New(version string) *Server

func (*Server) Assigner

func (s *Server) Assigner() (jrpc2.Assigner, error)

func (*Server) Completion

func (*Server) Definition

func (s *Server) Definition(ctx context.Context, params protocol.DefinitionParams) ([]protocol.Location, error)

func (*Server) DidChange

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

func (*Server) DidClose

func (s *Server) DidClose(ctx context.Context, params protocol.TextDocumentIdentifier) error

func (*Server) DidOpen

func (*Server) DocumentSymbol added in v0.8.0

func (s *Server) DocumentSymbol(ctx context.Context, params protocol.DocumentSymbolParams) ([]protocol.DocumentSymbol, error)

DocumentSymbol dispatches textDocument/documentSymbol to the registered feature.

func (*Server) Hover

func (s *Server) Hover(ctx context.Context, params protocol.HoverParams) (*protocol.HoverResult, error)

func (*Server) Initialize

func (s *Server) Initialize(ctx context.Context, params InitializeParams) (protocol.InitializeResult, error)

func (*Server) Initialized

func (s *Server) Initialized(ctx context.Context) error

func (*Server) References added in v0.8.0

func (s *Server) References(ctx context.Context, params protocol.ReferenceParams) ([]protocol.Location, error)

References dispatches textDocument/references to the registered feature.

func (*Server) RegisterFeature

func (s *Server) RegisterFeature(f features.Feature)

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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