lsp

package
v0.0.0-...-09edcb8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	Read() (*lsproto.Message, error)
}

func ToReader

func ToReader(r io.Reader) Reader

type Server

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

func NewServer

func NewServer(opts *ServerOptions) *Server

func (*Server) Log

func (s *Server) Log(msg ...any)

func (*Server) NpmInstall

func (s *Server) NpmInstall(cwd string, args []string) ([]byte, error)

NpmInstall implements ata.NpmExecutor

func (*Server) RefreshDiagnostics

func (s *Server) RefreshDiagnostics(ctx context.Context) error

RefreshDiagnostics implements project.Client.

func (*Server) Run

func (s *Server) Run() error

func (*Server) SetCompilerOptionsForInferredProjects

func (s *Server) SetCompilerOptionsForInferredProjects(ctx context.Context, options *core.CompilerOptions)

!!! temporary; remove when we have `handleDidChangeConfiguration`/implicit project config support

func (*Server) UnwatchFiles

func (s *Server) UnwatchFiles(ctx context.Context, id project.WatcherID) error

UnwatchFiles implements project.Client.

func (*Server) WatchFiles

func (s *Server) WatchFiles(ctx context.Context, id project.WatcherID, watchers []*lsproto.FileSystemWatcher) error

WatchFiles implements project.Client.

type ServerOptions

type ServerOptions struct {
	In  Reader
	Out Writer
	Err io.Writer

	Cwd                string
	FS                 vfs.FS
	DefaultLibraryPath string
	TypingsLocation    string
	ParseCache         *project.ParseCache
}

type Writer

type Writer interface {
	Write(msg *lsproto.Message) error
}

func ToWriter

func ToWriter(w io.Writer) Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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