lsp

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package lsp contains Language Server Protocol utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompatibleCodeActions added in v0.8.0

func CompatibleCodeActions(cap *protocol.ServerCapabilities, kinds []protocol.CodeActionKind) []protocol.CodeActionKind

func DetectLanguage added in v0.8.0

func DetectLanguage(filename string) string

func DidChange added in v0.8.0

func DidChange(ctx context.Context, server protocol.Server, filename string, body []byte) error

func DidClose added in v0.8.0

func DidClose(ctx context.Context, server protocol.Server, filename string) error

func DidOpen added in v0.8.0

func DidOpen(ctx context.Context, server protocol.Server, filename string, lang string, body []byte) error

func DidSave added in v0.8.0

func DidSave(ctx context.Context, server protocol.Server, filename string) error

func DirsToWorkspaceFolders added in v0.8.0

func DirsToWorkspaceFolders(dirs []string) ([]protocol.WorkspaceFolder, error)
func LocationLink(l *protocol.Location) string

func LogMessages added in v0.11.0

func LogMessages(logger jsonrpc2.Logger) jsonrpc2.ConnOpt

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 added in v0.8.0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL