lsp

package
v7.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package lsp 提供 language server protocol 服务

Index

Constants

View Source
const (
	ErrParseError           = jsonrpc.CodeParseError
	ErrInvalidRequest       = jsonrpc.CodeInvalidRequest
	ErrMethodNotFound       = jsonrpc.CodeMethodNotFound
	ErrInvalidParams        = jsonrpc.CodeInvalidParams
	ErrInternalError        = jsonrpc.CodeInternalError
	ErrServerNotInitialized = -32002
	ErrUnknownErrorCode     = -32001
	ErrRequestCancelled     = -32800
	ErrContentModified      = -32801
)

错误代码,部分为 lsp 特有

View Source
const Version = "3.16.0"

Version lsp 的版本

Variables

This section is empty.

Functions

func Serve

func Serve(header bool, t string, addr string, timeout time.Duration, infolog, errlog *log.Logger) error

Serve 执行 LSP 服务

t 表示服务的类型,可以是 stdio、udp、tcp 和 unix。

Types

This section is empty.

Directories

Path Synopsis
Package protocol 协议内容的定义
Package protocol 协议内容的定义

Jump to

Keyboard shortcuts

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