Documentation
¶
Index ¶
- Variables
- type SemanticTokensOptions
- type Server
- func (s *Server) Handler(middlewares ...middleware.Middleware) jsonrpc2.Handler
- func (s *Server) Initialize(ctx context.Context, params *protocol.InitializeParams) (result *protocol.InitializeResult, err error)
- func (s Server) SemanticTokensFull(ctx context.Context, params *protocol.SemanticTokensParams) (result *protocol.SemanticTokens, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var StandardMiddleware = starlark_server.StandardMiddleware
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 (*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)
Click to show internal directories.
Click to hide internal directories.