lsp

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lsp implements the gx language server over base LSP on stdio (REQ-DEV-08, REQ-TLS-04). It speaks standard LSP with no editor-specific extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(r io.Reader, w io.Writer, opts Options) error

Serve runs the server loop until exit or EOF.

Types

type Options

type Options struct {
	// Root is the module root. initialize can supply it instead through
	// rootUri or workspaceFolders.
	Root string
	// Log receives server log output, or nil.
	Log io.Writer
}

Options configure one server process.

type Server

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

Server is one gx language server.

Jump to

Keyboard shortcuts

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