Documentation ¶
Index ¶
- type Option
- type Server
- func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams)
- func (s *Server) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams)
- func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams)
- func (s *Server) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams)
- func (s *Server) Initialize(ctx context.Context, conn *jsonrpc2.Conn, id jsonrpc2.ID, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Server)
Option provides a way to override default behavior of the Server.
func WithLogger ¶
WithLogger overrides the default logging.Logger for the Server with the supplied logging.Logger.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server services incoming LSP requests.
func (*Server) DidChange ¶
func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams)
DidChange handles calls to DidChange.
func (*Server) DidChangeWatchedFiles ¶
func (s *Server) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams)
DidChangeWatchedFiles handles calls to DidChangeWatchedFiles.
func (*Server) DidOpen ¶
func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams)
DidOpen handles calls to DidOpen.
Click to show internal directories.
Click to hide internal directories.