Documentation
¶
Overview ¶
Package langserver implements the language server endpoints.
Index ¶
- func DefaultConcurrency() int
- type CallRequest
- type LangServer
- type Mock
- func (lsm *Mock) Call(t T, cr *CallRequest) *rawResponse
- func (lsm *Mock) CallAndExpectError(t *testing.T, cr *CallRequest, expectErr error)
- func (lsm *Mock) CallAndExpectResponse(t *testing.T, cr *CallRequest, expectRaw string)
- func (lsm *Mock) CloseClientStdout(t T)
- func (lsm *Mock) Notify(t *testing.T, cr *CallRequest)
- func (lsm *Mock) Start(t T) context.CancelFunc
- func (lsm *Mock) Stop()
- func (lsm *Mock) StopFuncCalled() bool
- type Options
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConcurrency ¶
func DefaultConcurrency() int
Types ¶
type CallRequest ¶
type LangServer ¶
type LangServer struct {
// contains filtered or unexported fields
}
func (*LangServer) StartAndWait ¶
func (ls *LangServer) StartAndWait(reader io.Reader, writer io.WriteCloser) error
func (*LangServer) StartTCP ¶
func (ls *LangServer) StartTCP(address string) error
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
func (*Mock) Call ¶
func (lsm *Mock) Call(t T, cr *CallRequest) *rawResponse
func (*Mock) CallAndExpectError ¶
func (lsm *Mock) CallAndExpectError(t *testing.T, cr *CallRequest, expectErr error)
func (*Mock) CallAndExpectResponse ¶
func (lsm *Mock) CallAndExpectResponse(t *testing.T, cr *CallRequest, expectRaw string)
func (*Mock) CloseClientStdout ¶
func (*Mock) Start ¶
func (lsm *Mock) Start(t T) context.CancelFunc
Start is more or less duplicate of LangServer.StartAndWait except that this one doesn't wait
TODO: Explore whether we could leverage jrpc2's server.Local
func (*Mock) StopFuncCalled ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package handlers provides the core handler implementation that is responsible for managing internal features, and dispatching requests to these.
|
Package handlers provides the core handler implementation that is responsible for managing internal features, and dispatching requests to these. |
|
Package lsp provides functions to convert generic interfaces to LSP-specific types.
|
Package lsp provides functions to convert generic interfaces to LSP-specific types. |
|
Package protocol provides generated types for use in the language server implementation.
|
Package protocol provides generated types for use in the language server implementation. |
|
Package session provides session lifecycle tracking for a language server.
|
Package session provides session lifecycle tracking for a language server. |
Click to show internal directories.
Click to hide internal directories.