server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type SemanticTokensOptions

type SemanticTokensOptions struct {
	WorkDoneProgress bool                          `json:"workDoneProgress,omitempty"`
	Legend           protocol.SemanticTokensLegend `json:"legend,omitempty"`
	Range            bool                          `json:"range,omitempty"`
	Full             bool                          `json:"full,omitempty"`
}

type Server

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

func NewServer

func NewServer(cancel context.CancelFunc, notifier protocol.Client, docManager *document.Manager, analyzer *analysis.Analyzer) *Server

func (*Server) Handler added in v0.3.11

func (s *Server) Handler(middlewares ...middleware.Middleware) jsonrpc2.Handler

Overwrite starlark-lsp handler

func (*Server) Initialize

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

func (Server) SemanticTokensFull

func (s Server) SemanticTokensFull(ctx context.Context, params *protocol.SemanticTokensParams) (result *protocol.SemanticTokens, err error)

Jump to

Keyboard shortcuts

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