Documentation
¶
Index ¶
- type CompletionItem
- type CompletionList
- type CompletionParams
- type JSONRPCError
- type JSONRPCNotification
- type JSONRPCRequest
- type JSONRPCResponse
- type LSPClient
- func (c *LSPClient) Close() error
- func (c *LSPClient) DidOpen(ctx context.Context, filename, languageID string, version int, text string) error
- func (c *LSPClient) GetCompletions(ctx context.Context, line, character int) (*CompletionList, error)
- func (c *LSPClient) GetFileURI() string
- func (c *LSPClient) WaitForReady(ctx context.Context) error
- type Position
- type TextDocumentIdentifier
- type TextDocumentPositionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletionItem ¶
type CompletionList ¶
type CompletionList struct {
IsIncomplete bool `json:"isIncomplete"`
Items []CompletionItem `json:"items"`
}
type CompletionParams ¶
type CompletionParams struct {
TextDocumentPositionParams
}
type JSONRPCError ¶
type JSONRPCError struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
func (*JSONRPCError) Error ¶
func (e *JSONRPCError) Error() string
type JSONRPCNotification ¶
type JSONRPCRequest ¶
type JSONRPCResponse ¶
type JSONRPCResponse struct {
JSONRPC string `json:"jsonrpc"`
ID int `json:"id,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
Error *JSONRPCError `json:"error,omitempty"`
}
type LSPClient ¶
type LSPClient struct {
// contains filtered or unexported fields
}
LSPClient structure
func NewLSPClient ¶
NewLSPClient creates a new LSP client
func (*LSPClient) GetCompletions ¶
func (*LSPClient) GetFileURI ¶
type TextDocumentIdentifier ¶
type TextDocumentIdentifier struct {
URI string `json:"uri"`
}
type TextDocumentPositionParams ¶
type TextDocumentPositionParams struct {
TextDocument TextDocumentIdentifier `json:"textDocument"`
Position Position `json:"position"`
}
Click to show internal directories.
Click to hide internal directories.