lsp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package lsp provides an LSP server for DLiteScript.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler represents the LSP handler.

func NewHandler

func NewHandler(isDebugMode bool) *Handler

NewHandler creates a new LSP handler.

func (*Handler) GetShutdownChan

func (h *Handler) GetShutdownChan() chan struct{}

GetShutdownChan returns the shutdown channel.

func (*Handler) Handle

func (h *Handler) Handle(
	method string,
	params json.RawMessage,
) (json.RawMessage, *jsonrpc2.Error)

Handle handles a JSON-RPC request.

type Server

type Server struct {
	Handler jsonrpc2.Handler
}

Server represents the LSP server.

func NewServer

func NewServer(handler jsonrpc2.Handler) *Server

NewServer creates a new LSP server.

func (*Server) Start

func (s *Server) Start() error

Start starts the LSP server.

Directories

Path Synopsis
Package lsptypes contains the types for the LSP.
Package lsptypes contains the types for the LSP.

Jump to

Keyboard shortcuts

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