Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an LSP client connection.
type Request ¶
type Request struct {
JSONRPC string `json:"jsonrpc"`
ID int `json:"id"`
Method string `json:"method"`
Params interface{} `json:"params,omitempty"`
}
Request is an LSP request.
type Response ¶
type Response struct {
JSONRPC string `json:"jsonrpc"`
ID int `json:"id,omitempty"`
Method string `json:"method,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Error *ResponseError `json:"error,omitempty"`
}
Response is an LSP response.
type ResponseError ¶
ResponseError is an LSP error.
type ServerManager ¶
type ServerManager struct {
// contains filtered or unexported fields
}
ServerManager manages LSP server connections.
func NewServerManager ¶
func NewServerManager() *ServerManager
NewServerManager creates a new LSP server manager.
func (*ServerManager) IsRunning ¶
func (m *ServerManager) IsRunning(name string) bool
IsRunning checks if a server is running.
func (*ServerManager) List ¶
func (m *ServerManager) List() []string
List returns all running servers.
func (*ServerManager) Start ¶
func (m *ServerManager) Start(name, command string, args ...string) error
Start starts an LSP server.
func (*ServerManager) Stop ¶
func (m *ServerManager) Stop(name string) error
Stop stops an LSP server gracefully.
Click to show internal directories.
Click to hide internal directories.