Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocationLink ¶
type LocationLink struct {
// Span of the origin of this link.
// Used as the underlined span for mouse interaction.
// Optional - defaults to the word range at the mouse position.
OriginSelectionRange *lsp.Range `json:"originSelectionRange,omitempty"`
// The target resource identifier of this link.
TargetURI lsp.DocumentURI `json:"targetUri"`
// The full target range including surrounding content like comments
TargetRange lsp.Range `json:"targetRange"`
// The precise range that should be selected when following the link
// Must be contained within TargetRange
TargetSelectionRange lsp.Range `json:"targetSelectionRange"`
}
LocationLink is an implementation of the LocationLink LSP type https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#locationLink
https://github.com/sourcegraph/go-lsp does not support the LocationLink Type so we have implemented it here for lua-language-server
type LuaLS ¶
type LuaLS struct {
Path string
// contains filtered or unexported fields
}
func (*LuaLS) ForwardRequest ¶
ForwardRequest forwards a request from proxy to the lua-language-server
type Options ¶
type Options struct {
// Custom path to lua-language-server
LuaLsPath string
// Custom path to where intermediate LSP shadow files are stored
ShadowRoot string
}
func (*Options) OverrideDocOpts ¶
func (o *Options) OverrideDocOpts(opts *iLsp.DocumentServiceOptions) error
type RWC ¶
type RWC struct {
// contains filtered or unexported fields
}
func NewRWC ¶
func NewRWC(r io.ReadCloser, w io.WriteCloser) *RWC
NewRWC creates a new RWC with custom reader and writer
Click to show internal directories.
Click to hide internal directories.