lsp

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package lsp exposes certain internals of the lsp server for use with web-based clients to the Regal LSP.

Use with care, interfaces may change. This package is considered experimental!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

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

Handle represents a single active LSP session.

func New

func New(ctx context.Context, ws *websocket.Conn, c *config.Config) (*Handle, error)

New opens a new language server session on the provided websocket connection `ws`. Use the `*config.Config` argument to control the LSP session's config.

func (*Handle) Close

func (h *Handle) Close() error

Close closes the underlying connection and waits for workers to complete.

func (*Handle) Wait

func (h *Handle) Wait(ctx context.Context) error

Wait waits for the client to finish its exchange. It aborts if ctx is done.

Jump to

Keyboard shortcuts

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