Documentation
¶
Index ¶
- func AutoInstallLSP(lang string) (string, error)
- func FindLSPBinary(lang string) (string, error)
- func PathToURI(path string) string
- func URIToPath(uriStr string) (string, error)
- type LSPClient
- type LSPManager
- type Location
- type Notification
- type Position
- type Range
- type Request
- type Response
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoInstallLSP ¶
func FindLSPBinary ¶
FindLSPBinary resolves the path to an LSP executable.
Types ¶
type LSPClient ¶
type LSPClient struct {
// contains filtered or unexported fields
}
func NewLSPClient ¶
NewLSPClient spawns the LSP binary and connects to standard IO.
func (*LSPClient) Initialize ¶
type LSPManager ¶
type LSPManager struct {
// contains filtered or unexported fields
}
LSPManager wraps all active LSPs for different languages.
func NewLSPManager ¶
func NewLSPManager(workspaceRoot string) *LSPManager
func (*LSPManager) Close ¶
func (m *LSPManager) Close()
type Notification ¶
type Response ¶
type Response struct {
JSONRPC string `json:"jsonrpc"`
ID *int64 `json:"id,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Error *ResponseError `json:"error,omitempty"`
}
type ResponseError ¶
Click to show internal directories.
Click to hide internal directories.