buflsp

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package buflsp implements a language server for Protobuf.

The main entry-point of this package is the Serve() function, which creates a new LSP server.

Package buflsp implements a language server for Protobuf.

The main entry-point of this package is the Serve() function, which creates a new LSP server.

Package buflsp implements a language server for Protobuf.

The main entry-point of this package is the Serve() function, which creates a new LSP server.

Index

Constants

View Source
const (
	// The strategy for how to calculate the --against input for a breaking
	// check. This must be one of the following values:
	//
	// - "git". Use a particular Git revision to find the against file.
	//
	// - "disk". Use the last-saved value on disk as the against file.
	ConfigBreakingStrategy = "buf.checks.breaking.againstStrategy"
	// The Git revision to use for calculating the --against input for a
	// breaking check when using the "git" strategy.
	ConfigBreakingGitRef = "buf.checks.breaking.againstGitRef"
)

Configuration keys for the LSP.

These are part of the public API of the LSP server, in that any user of the LSP can configure it using these keys. The server requests them over the LSP protocol as-needed.

Keep in sync with bufbuild/vscode-buf package.json.

Variables

This section is empty.

Functions

func Serve

func Serve(
	ctx context.Context,
	wktBucket storage.ReadBucket,
	container appext.Container,
	controller bufctl.Controller,
	wasmRuntime wasm.Runtime,
	stream jsonrpc2.Stream,
) (jsonrpc2.Conn, error)

Serve spawns a new LSP server, listening on the given stream.

Returns a context for managing the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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