serves

package
v0.0.0-...-92d8de8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignatureHelpTypeInsertValue signatureHelpType
	SignatureHelpTypeUnknown     = 99
)

Variables

View Source
var (
	ColorKeyword = lsp.Color{Red: 198, Green: 144, Blue: 114, Alpha: 1}
)
View Source
var ErrNoHover = errors.New("no hover infomation found")

Functions

This section is empty.

Types

type Server

type Server struct {
	*lsp.AbsServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, options ...jsonrpc2.ConnOpt) *Server

func (*Server) CodeAction

func (that *Server) CodeAction(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.CodeActionParams) ([]lsp.CodeAction, error)

func (*Server) CodeLens

func (that *Server) CodeLens(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.CodeLensParams) ([]lsp.CodeLens, error)

func (*Server) ColorPresentation

func (that *Server) ColorPresentation(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ColorPresentationParams) ([]lsp.ColorPresentation, error)

func (*Server) Completion

func (that *Server) Completion(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.CompletionParams) (*lsp.CompletionList, error)

func (*Server) Declaration

func (that *Server) Declaration(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DeclarationParams) (*lsp.Or_textDocument_declaration, error)

func (*Server) Definition

func (that *Server) Definition(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DefinitionParams) ([]lsp.Location, error)

func (*Server) DidChange

func (that *Server) DidChange(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DidChangeTextDocumentParams) error

func (*Server) DidChangeConfiguration

func (that *Server) DidChangeConfiguration(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DidChangeConfigurationParams) error

func (*Server) DidClose

func (that *Server) DidClose(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DidCloseTextDocumentParams) error

func (*Server) DidOpen

func (that *Server) DidOpen(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DidOpenTextDocumentParams) error

func (*Server) DidSave

func (that *Server) DidSave(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DidSaveTextDocumentParams) error

func (*Server) DocumentColor

func (that *Server) DocumentColor(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentColorParams) ([]lsp.ColorInformation, error)

func (*Server) DocumentHighlight

func (that *Server) DocumentHighlight(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentHighlightParams) ([]lsp.DocumentHighlight, error)
func (that *Server) DocumentLink(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentLinkParams) ([]lsp.DocumentLink, error)

func (*Server) DocumentSymbol

func (that *Server) DocumentSymbol(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentSymbolParams) ([]any, error)

func (*Server) ExecuteCommand

func (that *Server) ExecuteCommand(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ExecuteCommandParams) (interface{}, error)

func (*Server) Exit

func (that *Server) Exit(ctx lsp.Context, conn *jsonrpc2.Conn) error

func (*Server) FoldingRange

func (that *Server) FoldingRange(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.FoldingRangeParams) ([]lsp.FoldingRange, error)

func (*Server) Formatting

func (that *Server) Formatting(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentFormattingParams) ([]lsp.TextEdit, error)

func (*Server) Hover

func (that *Server) Hover(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.HoverParams) (*lsp.Hover, error)

func (*Server) Implementation

func (that *Server) Implementation(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ImplementationParams) ([]lsp.Location, error)

func (*Server) Initialize

func (that *Server) Initialize(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ParamInitialize) (*lsp.InitializeResult, error)

func (*Server) Initialized

func (that *Server) Initialized(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.InitializedParams) error

func (*Server) InlayHint

func (that *Server) InlayHint(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.InlayHintParams) ([]lsp.InlayHint, error)

func (*Server) RangeFormatting

func (that *Server) RangeFormatting(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.DocumentRangeFormattingParams) ([]lsp.TextEdit, error)

func (*Server) References

func (that *Server) References(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.ReferenceParams) ([]lsp.Location, error)

func (*Server) Rename

func (that *Server) Rename(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.RenameParams) (*lsp.WorkspaceEdit, error)

func (*Server) ServeHTTP

func (that *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) ServeRPC

func (that *Server) ServeRPC(ctx context.Context, conn *jsonrpc2.Conn, r *jsonrpc2.Request) (any, error)

func (*Server) ServeSTD

func (that *Server) ServeSTD(ctx context.Context)

func (*Server) Shutdown

func (that *Server) Shutdown(ctx lsp.Context, conn *jsonrpc2.Conn) error

func (*Server) SignatureHelp

func (that *Server) SignatureHelp(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.SignatureHelpParams) (*lsp.SignatureHelp, error)

func (*Server) Start

func (that *Server) Start() error

func (*Server) Stop

func (that *Server) Stop() error

func (*Server) TypeDefinition

func (that *Server) TypeDefinition(ctx lsp.Context, conn *jsonrpc2.Conn, params *lsp.TypeDefinitionParams) ([]lsp.Location, error)

Jump to

Keyboard shortcuts

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