lsplaunch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 17 Imported by: 1 module, 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

Starts a language server of the repository for an editor, from the repository root. The servers compile sim/core, which imports the generated sim/core/proto, so a checkout whose .proto files moved past the generated code cannot even start one. This package imports nothing from the repository: it regenerates that code first, builds the server and runs it on the editor's stdio. Where the build still fails, a language server that only reports the failure answers instead, so the editor keeps the server and restarting it retries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(server Server) int

Builds and runs the server, and gives the exit code to leave with.

Types

type Server

type Server struct {
	Name    string   // What the editor knows the server as, which a failed build is reported under.
	Package string   // The package it is built from, such as ./tools/spelldata.
	Tags    []string // Its build tags.
	Args    []string // Its arguments.
	LSP     bool     // It speaks the Language Server Protocol on stdio, so a failed build is reported over it.
}

A server and how it is built.

Jump to

Keyboard shortcuts

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