lsp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 9 Imported by: ? 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

PSL LSP completion provider — enhanced code completion for PSL files.

Package lsp implements a Language Server Protocol server for PSL files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HoverInfo

func HoverInfo(token string) string

HoverInfo returns hover information for a PSL token.

Types

type CompletionItem

type CompletionItem struct {
	Label      string `json:"label"`
	Kind       int    `json:"kind"` // 1=Text, 2=Method, 3=Function, 6=Variable, 7=Class, 14=Keyword
	Detail     string `json:"detail"`
	InsertText string `json:"insertText"`
}

CompletionItem represents a code completion item.

func KeywordCompletions

func KeywordCompletions() []CompletionItem

KeywordCompletions returns PSL keyword completions.

type Server

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

Server is the PSL language server.

func NewServer

func NewServer() *Server

NewServer creates a new LSP server reading from stdin and writing to stdout.

func (*Server) Run

func (s *Server) Run() error

Run starts the LSP server main loop.

Jump to

Keyboard shortcuts

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