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: 0

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