lsp

package
v0.107.6-beta.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeverityError   = 1
	SeverityWarning = 2
	SeverityInfo    = 3
	SeverityHint    = 4
)

Variables

This section is empty.

Functions

func FromConfigMap

func FromConfigMap(in map[string]config.LSPServer) map[string]ServerSpec

func Report

func Report(edited string, editedDiags []Diagnostic, siblings map[string][]Diagnostic) string

Types

type Diagnostic

type Diagnostic struct {
	Line     int
	Col      int
	Severity int
	Message  string
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(specs map[string]ServerSpec) *Manager

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) Statuses

func (m *Manager) Statuses() []Status

func (*Manager) WaitDiagnostics

func (m *Manager) WaitDiagnostics(ctx context.Context, path string) string

type ServerSpec

type ServerSpec struct {
	Command     []string
	Extensions  []string
	RootMarkers []string
	Env         map[string]string
	Disabled    bool
}

type Status

type Status struct {
	Name  string
	Root  string
	State string
	Err   string
}

Jump to

Keyboard shortcuts

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