Documentation
¶
Index ¶
- func CancelRequest(ctx context.Context, params lsp.CancelParams) error
- func Initialized(ctx context.Context, params lsp.None) error
- func LogHandler(logger *log.Logger) *logHandler
- func NewSession(srvCtx context.Context) session.Session
- func Shutdown(ctx context.Context, vs lsp.None) error
- func TextDocumentDidChange(ctx context.Context, params DidChangeTextDocumentParams) error
- func TextDocumentDidClose(ctx context.Context, params lsp.DidCloseTextDocumentParams) error
- type DidChangeTextDocumentParams
- type VersionedTextDocumentIdentifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelRequest ¶
func CancelRequest(ctx context.Context, params lsp.CancelParams) error
func LogHandler ¶
func TextDocumentDidChange ¶
func TextDocumentDidChange(ctx context.Context, params DidChangeTextDocumentParams) error
func TextDocumentDidClose ¶
func TextDocumentDidClose(ctx context.Context, params lsp.DidCloseTextDocumentParams) error
Types ¶
type DidChangeTextDocumentParams ¶ added in v0.3.0
type DidChangeTextDocumentParams struct {
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
ContentChanges []lsp.TextDocumentContentChangeEvent `json:"contentChanges"`
}
TODO: Revisit after https://github.com/hashicorp/terraform-ls/issues/118 is addressed Then we could switch back to upstream go-lsp
func (*DidChangeTextDocumentParams) UnmarshalJSON ¶ added in v0.3.0
func (v *DidChangeTextDocumentParams) UnmarshalJSON(b []byte) error
UnmarshalJSON implements non-strict json.Unmarshaler.
type VersionedTextDocumentIdentifier ¶ added in v0.3.0
type VersionedTextDocumentIdentifier struct {
URI lsp.DocumentURI `json:"uri"`
/**
* The version number of this document.
*/
Version int `json:"version"`
}
func (*VersionedTextDocumentIdentifier) UnmarshalJSON ¶ added in v0.3.0
func (v *VersionedTextDocumentIdentifier) UnmarshalJSON(b []byte) error
UnmarshalJSON implements non-strict json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.