Documentation
¶
Overview ¶
Package lsp contains Language Server Protocol utility functions.
Index ¶
- func CompatibleCodeActions(cap *protocol.ServerCapabilities, kinds []protocol.CodeActionKind) []protocol.CodeActionKind
- func DetectLanguage(filename string) string
- func DidChange(ctx context.Context, server protocol.Server, filename string, body []byte) error
- func DidClose(ctx context.Context, server protocol.Server, filename string) error
- func DidOpen(ctx context.Context, server protocol.Server, filename string, lang string, ...) error
- func DidSave(ctx context.Context, server protocol.Server, filename string) error
- func DirsToWorkspaceFolders(dirs []string) ([]protocol.WorkspaceFolder, error)
- func LocationLink(l *protocol.Location, basedir string) string
- func LogMessages(logger jsonrpc2.Logger) jsonrpc2.ConnOpt
- func ServerProvidesCodeAction(cap *protocol.ServerCapabilities, kind protocol.CodeActionKind) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompatibleCodeActions ¶
func CompatibleCodeActions(cap *protocol.ServerCapabilities, kinds []protocol.CodeActionKind) []protocol.CodeActionKind
func DetectLanguage ¶
func DirsToWorkspaceFolders ¶
func DirsToWorkspaceFolders(dirs []string) ([]protocol.WorkspaceFolder, error)
func LogMessages ¶
LogMessages causes all messages sent and received on conn to be logged using the provided logger.
This works around a bug in jsonrpc2. Upstream PR: https://github.com/sourcegraph/jsonrpc2/pull/71
func ServerProvidesCodeAction ¶
func ServerProvidesCodeAction(cap *protocol.ServerCapabilities, kind protocol.CodeActionKind) bool
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package acmelsp implements the core of acme-lsp commands.
|
Package acmelsp implements the core of acme-lsp commands. |
config
Package config defines LSP tools configuration.
|
Package config defines LSP tools configuration. |
Pakcage cmd contains utlity functions that help implement lsp related commands.
|
Pakcage cmd contains utlity functions that help implement lsp related commands. |
Package proxy implements the protocol between acme-lsp and L commands.
|
Package proxy implements the protocol between acme-lsp and L commands. |
Package text implements text editing helper routines for LSP.
|
Package text implements text editing helper routines for LSP. |
Click to show internal directories.
Click to hide internal directories.