lsp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(opts *ServerOptions) *Server

func (*Server) DefaultLibraryPath

func (s *Server) DefaultLibraryPath() string

DefaultLibraryPath implements project.ProjectServiceHost.

func (*Server) FS

func (s *Server) FS() vfs.FS

FS implements project.ProjectServiceHost.

func (*Server) GetCurrentDirectory

func (s *Server) GetCurrentDirectory() string

GetCurrentDirectory implements project.ProjectServiceHost.

func (*Server) Log

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

func (*Server) NewLine

func (s *Server) NewLine() string

NewLine implements project.ProjectServiceHost.

func (*Server) Run

func (s *Server) Run() error

func (*Server) Trace

func (s *Server) Trace(msg string)

Trace implements project.ProjectServiceHost.

type ServerOptions

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

	Cwd                string
	NewLine            core.NewLineKind
	FS                 vfs.FS
	DefaultLibraryPath string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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