lsp

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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 DetectLanguage

func DetectLanguage(filename string) string

func DidChange

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

func DidClose

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

func DidOpen

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

func DidSave

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

func DirsToWorkspaceFolders

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

func LogMessages

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

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